iis-7 - Visual Studio 2012 Web 部署到带有 IIS 7 和/msdeploy.axd 404 错误的 Windows Server 2008 R2

标签 iis-7 http-status-code-404 windows-server-2008-r2 visual-studio-2012 webdeploy

在 Visual Studio 2012 RC 中,当我尝试验证 Web 部署连接时,我收到以下错误消息:

ERROR_DESTINATION_NOT_REACHABLE

enter image description here

在服务器上启动所需的 Web 管理服务并安装 Web Deploy 3.0 RC。

然后使用远程桌面连接登录服务器并检查 IIS位于 C:\inetpub\logs\LogFiles\W3SVC1 的日志.在那里我可以看到我验证连接的尝试,因为它们包含我的 IP 地址:

2012-07-13 20:58:49 185.201.117.17 HEAD /msdeploy.axd site=Default%20Web%20Site 8172 - 189.10.32.194 - 404 0 2 78

它给了我一个404。

在试图让它工作近 6 个小时后(阅读了很多 Material ,包括 IIS 团队的这篇很棒的故障排除指南,标题为 Troubleshooting Web Deploy problems with Visual Studio 和这个相关问题 Visual Studio 2010 Web deployment task failed),我决定在这里寻求帮助,看看是否有人有关于可能是什么问题的线索......你知道是什么导致了这个 404 错误吗?

如果您需要更多信息,请问我,我会提供... :)

编辑 1

昨天我也尝试了以下msdeploy我的本地机器上的命令列出名为 test 的文件夹的内容在服务器上[它按预期工作]:
C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:dump -source:content
path=c:\test,computerName=xxxxxxxxxx.publiccloud.com.br,username=User,password=Password
Info: Using ID 'a246a13c-7777-4226-964c-fe9934c60b77' for connections to the rem
ote server.
MSDeploy.contentPath
c:\test
c:\test
c:\test\test.txt

编辑 2

经过大量安装/重新安装操作后,当我尝试使用 VS 2012 RC 甚至命令行中的 msdeploy 发布网站时,我终于达到了 Windows Server 2008 返回 503 HTTP 错误的地步。

看起来现在最好的办法是全新安装 Windows Server 2008,因为我需要使用一个困惑的 VM 服务器镜像。希望它能解决问题。

仅作记录,这是 VS 2012 尝试执行的 msdeploy 命令。我做了一个复制/粘贴,并在命令行中使用 msdeploy 进行了尝试:
C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe -source:manifest='E:\SISPEC\SISPEC\obj\Release\Package\SISPEC.SourceManifest.xml' -dest:auto,ComputerName="https://xxxxxxxxxx.publiccloud.com.br:8172/msdeploy.axd?site=Default%20Web%20Site",UserName='UserName',Password='Password',IncludeAcls='False',AuthType='Basic' -verb:sync -enableRule:DoNotDeleteRule -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"E:\SISPEC\SISPEC\obj\Release\Package\SISPEC.Publish.Parameters.xml" -retryAttempts=2

只是为了获得相同的 503 Server Unavailable 消息。

编辑 3

这个问题是在 IIS Web 部署工具 (MS Deploy) 论坛 here 上交叉发布的。 .

最佳答案

仅供引用 - 我也遇到了 404 错误。原来我必须下载完整的包并安装所有东西。

http://www.iis.net/downloads/microsoft/web-deploy#additionalDownloads

关于iis-7 - Visual Studio 2012 Web 部署到带有 IIS 7 和/msdeploy.axd 404 错误的 Windows Server 2008 R2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11479927/

相关文章:

python - 带有gunicorn和nginx的Django不会返回404或500

http - 为什么在 404 错误页面有 200 OK header 状态是不好的?

IIS 7.5/Windows Server 2008 上的 PHP 错误日志

windows-server-2008-r2 - 如何在 Windows 2008 R2 上注册 32 位 .DLL COM+ 应用程序

ASP.NET 上下文重写路径 404 错误

iis-7 - IIS 7.0 - IIS 将 "private"添加到缓存控制,它来自哪里

iis-7 - DefaultDocument 突然无法在 IIS7 上运行

wordpress - 弹窗评论无索引

windows - 检索powershell中日期范围内修改的文件的完整路径和文件权限

c# - 错误 : "An operations error occurred" in System. DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity