Visual Studio 2012 Web部署到带有IIS 7的Windows Server 2008 R2和/msdeploy.axd 404错误 [英] Visual Studio 2012 Web Deploy to Windows Server 2008 R2 with IIS 7 and /msdeploy.axd 404 error

查看:823
本文介绍了Visual Studio 2012 Web部署到带有IIS 7的Windows Server 2008 R2和/msdeploy.axd 404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



和相关问题 Visual Studio 2010 Web部署任务失败)我决定在这里寻求帮助看看有没有人知道可能是什么问题......你知道是什么导致了这个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:使用ID'a246a13c-7777-4226-964c-fe9934c60b77'连接到rem
ote服务器。
MSDeploy.contentPath
c:\ test
c:\ test
c:\ test\test.txt

编辑2



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



看起来像现在最好的办法就是彻底安装Windows Server 2008,因为我有一个混乱的虚拟机服务器映像可以使用。希望它能做到这一点。



只是为了记录,这是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,用户名= '用户名',密码= '密码',IncludeAcls = '假',进行AuthType =基本'-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)上交叉发布)论坛这里

解决方案

Fyi - 我也得到了404错误。事实证明,我必须下载完整的软件包并安装所有软件包。



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


In Visual Studio 2012 RC when I try to validate a Web Deploy connection I get this error message:

ERROR_DESTINATION_NOT_REACHABLE

The required Web Management Service is started on the server and Web Deploy 3.0 RC is installed.

Then using Remote Desktop Connection I log on the server and go check IIS logs located at C:\inetpub\logs\LogFiles\W3SVC1. There I can see my attempts to validate the connection because they contain my IP address:

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

It's giving me a 404.

After trying to get this working for almost 6 hours now (reading a lot of material including this great Troubleshooting guide by IIS team titled Troubleshooting Web Deploy problems with Visual Studio and this related question Visual Studio 2010 Web deployment task failed) I decided to ask for help here and see if anyone has a clue about what can be the problem... Do you know what's causing this 404 error?

If you need any more info, just ask me and I'll provide it... :)

Edit 1

Yesterday I also tried the following msdeploy command on my local machine to list the the contents of a folder called test on the server [ and it worked as expected ]:

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

Edit 2

After a lot of install/reinstall operations I finally got to a point where Windows Server 2008 is returning a 503 HTTP error when I try to publish the web site using VS 2012 RC or even msdeploy in the command line.

Looks like the best thing to do now is to do a clean install of Windows Server 2008 since I got a messed up VM server image to work with. Hope it'll do the trick.

Just for the record, this is the msdeploy command VS 2012 tries to execute. I did a copy/paste and tried it with msdeploy in the command line:

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

just to get the same 503 Server Unavailable message.

Edit 3

This question was cross-posted at the IIS Web Deployment Tool (MS Deploy) forum here.

解决方案

Fyi - I too was getting the 404 errors. It turned out that I had to download the full package and install everything.

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

这篇关于Visual Studio 2012 Web部署到带有IIS 7的Windows Server 2008 R2和/msdeploy.axd 404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆