【问题标题】:How can I get more information why publish fails?如何获取更多信息,为什么发布失败?
【发布时间】:2013-01-08 14:31:13
【问题描述】:

我目前尝试使用 Visual Studio 2012 部署 ASP.NET 应用程序。我创建了一个发布配置文件,验证了连接(得到了这个绿色复选标记)并单击了“发布”。我使用相同的信息和 FileZilla,可以创建文件/文件夹。

但我收到此错误:

2>------ Publish started: Project: MyProject, Configuration: Debug Any CPU ------
2>Connecting to my.url.de...
2>Transformed Web.config using C:\Users\moose\MyProject\MyProject\Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
2>Copying all files to temporary location below for package/publish:
2>obj\Debug\Package\PackageTmp.
2>Publishing folder /...
2>Unable to add 'Global.asax' to the Web site.   (550).
2>Unable to add 'NamespaceComments.xml' to the Web site.   (550).
2>Unable to add 'packages.config' to the Web site.   (550).
2>Unable to add 'Web.config' to the Web site.   (550).
2>Unable to add folder 'bin' to the Web site.  Cannot create folder "bin".
2>Unable to add folder 'CodeTemplates' to the Web site.  Cannot create folder "CodeTemplates".
2>Unable to add folder 'Content' to the Web site.  Cannot create folder "Content".
2>Unable to add folder 'Models' to the Web site.  Cannot create folder "Models".
2>Unable to add folder 'Views' to the Web site.  Cannot create folder "Views".
2>
========== Build: 1 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

我知道 FTP 错误 550 的意思是:请求的操作未采取。文件不可用(例如,未找到文件,无法访问)。 (source)

这并没有给我任何暗示他为什么“无法添加 [xyz]”。我怎样才能获得有关它的更多信息? (例如,VS 尝试在哪里部署它?)

【问题讨论】:

  • 我收到错误消息(我需要更改到服务器上的文件夹,因为我没有文件夹 / 但某些子文件夹的写权限)。但是问题仍然存在,我没有得到太多信息。

标签: visual-studio-2012 publish web-deployment


【解决方案1】:

当这发生在我身上时,我意识到我忘记以管理员身份启动我的 Visual Studio。一旦我这样做了,发布的问题就消失了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-14
    • 1970-01-01
    • 1970-01-01
    • 2012-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-07
    相关资源
    最近更新 更多