简体   繁体   English

成功发布后仍无法部署asp.net网站

[英]Unable to deploy asp.net website inspite of successfully publishing it

I have an asp.net web application which stores and retrieves values from a sql server database. 我有一个asp.net Web应用程序,该应用程序存储和检索来自sql server数据库的值。 Publish profile is: 发布资料是:

    <WebPublishMethod>MSDeploy</WebPublishMethod>
    <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <SiteUrlToLaunchAfterPublish>http://localhost:1381/</SiteUrlToLaunchAfterPublish>
    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <MSDeployServiceURL>192.168.xx.xx</MSDeployServiceURL>
    <DeployIisAppPath>LMS</DeployIisAppPath>
    <RemoteSitePhysicalPath />
    <SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
    <MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
    <EnableMSDeployBackup>False</EnableMSDeployBackup>
    <UserName>administrator</UserName>
    <_SavePWD>True</_SavePWD>

It builds successfully. 它构建成功。 When published it shows the following error: 发布时会显示以下错误:

Web deployment task failed. Web部署任务失败。 (Could not connect to the remote computer ("192.168.10.237") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC .) (由于服务器未响应,因此无法使用指定的进程(“ Web管理服务”)连接到远程计算机(“ 192.168.10.237”)。请确保该进程(“ Web管理服务”)已在远程计算机上启动计算机。有关详细信息,请访问: http : //go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC 。)

I have checked that the said service is running on the remote computer. 我检查了该服务是否在远程计算机上运行。 What I am trying to do is deploy this on our intranet server which houses our active directory services too. 我正在尝试将其部署在我们的内联网服务器上,该服务器也包含我们的活动目录服务。 It publishes successfully on the local machine but when accessing it through the browser, it shows error 500.19 and fails to connect. 它在本地计算机上成功发布,但是通过浏览器访问它时,显示错误500.19并且无法连接。 To resolve it I followed everything said here: 为了解决这个问题,我遵循了这里所说的一切:

http://support.microsoft.com/kb/942055 http://support.microsoft.com/kb/942055

But all in vain. 但是都是徒劳的。 I have tried publishing the website and database separately as in using the File System and FTP publish methods too, but nothing works. 我也尝试过像使用文件系统和FTP发布方法那样分别发布网站和数据库,但是没有任何效果。 Please help. 请帮忙。

  • Install IIS and the Web Management Service on your Windows Server 在Windows Server上安装IIS和Web管理服务

  • Configure WMSVC so that remote connections are allowed. 配置WMSVC,以便允许远程连接。

check out this blog click here 查看此博客, 请点击此处

I had this problem connecting Visual Studio 2015 to a Windows Server 2016. The suggestions at https://www.iis.net/learn/publish/troubleshooting-web-deploy/troubleshooting-web-deploy-problems-with-visual-studio solved it - I had to check and change quite a few firewall rules and services, and I think some of them took a few minutes to take effect so I'm not exactly what fixed it for me. 我在将Visual Studio 2015连接到Windows Server 2016时遇到了这个问题。https: //www.iis.net/learn/publish/troubleshooting-web-deploy/troubleshooting-web-deploy-problems-with-visual-studio的建议解决了它-我不得不检查并更改了许多防火墙规则和服务,而且我认为其中一些规则需要几分钟才能生效,因此我不确定对它进行修复的确切原因。

But I think specifically checking "enable remote connections" in the management service control panel, and then restarting the service, was a big one that was hard to find. 但是我认为在管理服务控制面板中专门检查“启用远程连接”,然后重新启动服务是一件很难找到的大事。

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

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