您應該知道的第一件事是,這個工作在上週三,VM已經回滾到上週一的星期一。MS網絡上的401部署
我在兩臺機器上安裝了MS Web部署安裝的最新版本。一個在我們的網絡中,一個在DMZ(外部網絡)中。內部仍然很好,但DMZ中的服務器不讓我部署。
正常的過程是使用Web發佈從VS 2010部署到http://SITENAME/MsDeployAgentService,並使用目標服務器的本地管理員的用戶名和密碼。現在,當我嘗試它只是掛起2分鐘,並說它無法連接到http://SITENAME/MsDeployAgentService。數據包嗅探器(Wireshark的)告訴我,他們所談論的,但所有身份驗證後,他們說的是
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Microsoft-HTTPAPI/2.0
MSDeploy.Response: v1
Date: Tue, 22 Mar 2011 22:46:33 GMT
B
...<results
B5
><trace eventLevel="Verbose" message="The HTTP connection (ID='5ccfecc6-0263-4e42-bc86-dbc4ee8df3d0', type ='GetTraceStatus') is being kept alive while the request is processed." />
B4
<trace eventLevel="Verbose" message="The HTTP connection (ID='5ccfecc6-0263-4e42-bc86-dbc4ee8df3d0', type ='GetTraceStatus') is being kept alive while the request is processed." />
A
</results>
0
所以我決定打包項目(我試過多個項目在服務器上,無工作)和複製它到服務器的c:。
PROJECTNAME.deploy.cmd /T
or
PROJECTNAME.deploy.cmd /T /m:http://localhost/MsDeployAgentService /u:USERNAME /p:Password
工作,但
PROJECTNAME.deploy.cmd /T /m:http://devel.sitename.com/MsDeployAgentService /u:USERNAME /p:Password
and
PROJECTNAME.deploy.cmd /T /m:http://localhost/MsDeployAgentService /u:USERNAME /p:Password /a:basic
不要。我得到的錯誤是
Error: Remote agent (URL http://localhost/MsDeployAgentService) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
Error: An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
有關故障診斷步驟的任何想法?過去一週發生的唯一變化是我們的網絡出現了病毒,導致公司關閉,但它並未感染DMZ,我被告知沒有任何規則在我們的防火牆上發生變化。擔心設置發生變化的原因是爲什麼虛擬機恢復到星期一(8天),這是在我知道最後一次工作的前幾天。