簡體   English   中英

WebDeploy - 只是無法讓它工作

[英]WebDeploy - just can't get it to work

我在VMWare下運行的Server 2008 R2上安裝了Web Deploy 2.1。

在IIS管理器(管理服務小程序)中,我可以看到“啟用遠程連接”,並將端口設置為8172.在“IIS管理員權限”下,我添加了我的Windows帳戶(CORP \\ ekkis),並在“身份驗證“applet(用於IIS)我啟用了”Windows身份驗證“。

我也關閉了防火牆。

所以從命令行我測試系統工作如下:

C:\Program Files\IIS\Microsoft Web Deploy V2>msdeploy -verb:dump -source:contentPath=\temp,wmsvc=192.168.0.70,username=CORP\ekkis,password=MyPass,authType=Basic -allowUntrusted=True

得到這個:

Info: Using ID '9b954a0f-ff07-4e77-ba2c-d27472f5fda0' for connections to the rem
ote server.
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the destination computer ("192.168.0.70") using t
he Web Management Service, but could not authorize. Make sure that you are using
 the correct user name and password, that the site you are connecting to exists,
 and that the credentials represent a user who has permissions to access the sit
e.
Error: Object of type 'contentPath' and path '\temp' cannot be created.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.

我還嘗試使用以下服務URL從主機操作系統部署Visual Studio 2010(我沒有找到有關如何形成此URL的正確文檔):

https://192.168.0.70/
https://192.168.0.70:8172/
https://192.168.0.70:8172/MsDeployAgentService/
https://192.168.0.70/MsDeployAgentService/

我也嘗試過非安全版本但是無法讓它工作。 網址的正確格式是什么? 我錯過了什么權限?

來自VS的錯誤根據我的嘗試方式而有所不同,但下面是一個示例:

Could not complete the request to remote agent URL 'http://192.168.0.70:8172//MSDEPLOYAGENTSERVICE'.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Publish failed to deploy.

確實應該有一個指南來做這個(是的,我用谷歌搜索自己藍色的臉)!

謝謝 - ekkis

好的,我發現正確的網址是:

https://192.168.0.70:8172/MsDeploy.axd

並且啟用“Windows身份驗證”似乎沒有任何區別。 此外,在“經理”列表中擁有我的帳戶似乎也沒有任何區別。

所以后端一切正常(我已經關閉了Web部署代理服務)。 這只是我錯了的網址。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM