简体   繁体   English

Web部署代理服务返回500内部服务器错误

[英]Web Deployment Agent Service returns a 500 Internal Server Error

I am attempting to deploy a web site remotely using the Web Deployment Agent Service. 我正在尝试使用Web部署代理服务远程部署网站。 When running the cmd file generated by Visual Studio using /m command switch, I get the following error: 使用/ m命令切换运行Visual Studio生成的cmd文件时,出现以下错误:

Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC 错误代码:ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
More Information: Could not connect to the remote computer ("xxxx") using the specified process ("Web Deployment Agent Service") because the server did not respond. 更多信息:无法使用指定的进程(“Web部署代理服务”)连接到远程计算机(“xxxx”),因为服务器没有响应。 Make sure that the process ("Web Deployment Agent Service") is started on the remote computer. 确保在远程计算机上启动该过程(“Web部署代理服务”)。 Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC . 有关详情,请访问: http//go.microsoft.com/fwlink/?LinkId = 221672 #ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
Error: The remote server returned an error: (500) Internal Server Error. 错误:远程服务器返回错误:(500)内部服务器错误。

I checked the link and it has 3 suggestions. 我检查了链接,它有3个建议。 Make sure the service is running which it is. 确保服务正在运行。 Make sure that the user is an administrator which it is and make sure the firewall isn't blocking the traffic which it isn't. 确保用户是管理员,并确保防火墙没有阻止不是的流量。

I turned on wireshark to see if that would get any clues and I get the initial 401 Unauthorized from the deployment service and then the client makes the request again using NTLMSSP_NEGOTIATE. 我打开wireshark,看看是否会得到任何线索,我从部署服务获得初始401 Unauthorized,然后客户端再次使用NTLMSSP_NEGOTIATE发出请求。 That is when the deployment service returns the 500. 那是部署服务返回500的时候。

I am guessing it is some sort of permissions thing on my deployment server, but I can't narrow it down. 我猜测它是我的部署服务器上的某种权限,但我不能缩小范围。 Does anyone know where the Web Deployment Agent Service logs or how to turn on logging for that service? 有谁知道Web部署代理服务记录的位置或如何打开该服务的日志记录?

If you look at this article about setting up Web Deployment server https://technet.microsoft.com/en-us/library/dd722796(v=ws.10).aspx 如果您查看有关设置Web部署服务器的文章,请访问https://technet.microsoft.com/en-us/library/dd722796(v=ws.10).aspx

in step 6 it points to this artical about setting up logging adn tracing https://technet.microsoft.com/en-us/library/ee461173(v=ws.10).aspx 在第6步,它指向这个关于设置日志记录和跟踪的技巧https://technet.microsoft.com/en-us/library/ee461173(v=ws.10).aspx

Did it work previously? 以前有用吗? I've had the same issue, WebDeploy suddenly broke down after a reboot on 19th december, some windows update. 我有同样的问题,WebDeploy在12月19日重启后突然崩溃,一些Windows更新。 I've had to remove WebDeploy 3.6 from program and Features and then to uninstall the IIS Webmanagement Role through the server manager. 我必须从程序和功能中删除WebDeploy 3.6,然后通过服务器管理器卸载IIS Web管理角色。

After rebooting i've installed Web Deploy 3.6 for Hosting Servers through Web Platform installer again and it worked again. 重新启动后,我再次通过Web平台安装程序为托管服务器安装了Web Deploy 3.6,它再次运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM