401 on MS Web Deploy

The first thing you should know is that it worked last Wednesday and the virtual machine was returned on Monday last week.

I have the latest version of the installation setup for MS Web on two machines. One is inside our network, and one is in the DMZ (external network). Internal still works fine, but the server in the DMZ does not allow me to deploy.

The usual procedure is to deploy from VS 2010 using web publishing to http: // SITENAME / MsDeployAgentService with the username and password of the local administrator of the target server. Now when I try, it just freezes for 2 minutes and says it cannot connect to http: // SITENAME / MsDeployAgentService . The packet sniffer (wirehark) tells me what they say, but after authentication, all they say is

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

So, I decided to pack the project (I tried several projects on the server, nobody worked) and copied it to server c :.

PROJECTNAME.deploy.cmd /T  
or 
PROJECTNAME.deploy.cmd /T /m:http://localhost/MsDeployAgentService /u:USERNAME /p:Password 

Works but

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

Do not. The error I get is this

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 ), , , .

+3
1

, IIS / , Windows ( ), , .

. , , 8172 ( ).

+5

All Articles