如何获取有关发布失败的更多信息?

时间:2013-01-08 14:31:13

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

我目前尝试使用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-Error 550意味着:未采取请求的操作。文件不可用(例如,找不到文件,无法访问)。source

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

1 个答案:

答案 0 :(得分:0)

当我遇到这种情况时,我意识到我忘记以管理员身份启动Visual Studio。我一做到了,发布的问题就消失了。