点击一次应用程序连接到远程服务器

问题描述:

我已经在ServerFault中添加此问题,但没有人回复。 我有一个.NET应用程序,它调用IIS上本地windows server 2012上部署的webservice,并且sql server数据库也驻留在该服务器上。所有员工都连接到相同的服务和数据库,因为我们都在同一个域中,并且我通过visual studio(2012)将应用程序和web服务发布到服务器。点击一次应用程序连接到远程服务器

现在我需要让员工在公司网络之外访问此应用程序,因此我在远程Windows 2012服务器上的IIS上部署了web服务,我在远程服务器中创建了公共共享文件夹,并将其添加到应用web服务的文件,并在Visual Studio中,我改变了出版法网络部署和填写的信息如下:

Server: https://x.x.x.x/

Site Name: https://x.x.x.x/PublicFolder

Destication URL: https://x.x.x.x/PublicFolder/Application

当我点击验证连接时,出现以下消息:

Could not connect to the remote computer ("x.x.x.x"). on the remote computer make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE . Unable to connect to the remote server

备注我试图取代HTTP HTTPS和我得到了另一个错误:

Could not connect to the remote computer ("x.x.x.x"). on the remote computer make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN . the remote server returned an error: (401)Unauthorized

我去了一个链接,我做了什么,他们建议:

  • 创建远程计算机上的一个单独的用户组MSDepSvcUsers。
  • 在本地&远程计算机上创建本地帐户A.
  • 将A添加到远程计算机上的MSDepSvcUsers。
  • 使用帐户A发布,这将允许您发布不需要使用内置管理员帐户的 。

,但同样的错误(NOT_ADMIN)保持

更新:我发现了另一个可能的解决方案:

Add/modify windows registery key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\” and set it “1”.

后,我加入此注册表项,改为错误:

site 'http:' does not exist ... #ERROR_SITE_DOES_NOT_EXIST

所以,现在如果我把错误的凭据,我得到未经授权的错误,如果我使用正确的凭据我得到方不存在的错误。

我该怎么办?

它的工作!

我指的是连接,它现在验证,所有我必须做的是改变网站的名字从http://x.x.x.x/PublicFolder“默认Web站点\站点名”

这真是令人困惑,终于明白了!