【发布时间】:2015-06-30 06:55:23
【问题描述】:
我已经开发了几个 ASP.NET 4.5 应用程序,我想使用 Web Deploy 将它们发布到运行 IIS 8 的远程计算机上。
我在 IIS8 中创建了两个站点,Site1 和 Site2。我创建了一个 IIS 用户,并授予该用户访问这两个站点的权限。
我可以通过 Web Deploy 发布第一个站点,但我无法发布第二个站点。
当我尝试发布第二个网站时,我在 Visual Studio 中收到此错误
2>Start Web Deploy Publish the Application/package to https://27.147.144.98:8172/msdeploy.axd?site=NSU ...
2>Adding ACL's for path (NSU)
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4255,5): Error : Web deployment task failed. ((6/30/2015 12:36:37 PM) An error occurred when the request was processed on the remote computer.)
2>
2>(6/30/2015 12:36:37 PM) An error occurred when the request was processed on the remote computer.
2>The server experienced an issue processing the request. Contact the server administrator for more information.
2>Publish failed to deploy.
第一个网站总是正确发布。问题仅发生在第二个站点。
【问题讨论】:
-
检查应用程序池,并使用模拟用户测试连接,我还建议检查 Web 部署凭据,您能否分享来自事件查看器的 Web 部署错误日志?