I published the Lightswitch application using Visual Studio 2012 RC for my localhost (Win 7, SQL 2008 R2, IIS 7.5). Now I am trying to publish to a remote server (Win 2008 R2, SQL 2008 R2, IIS 7.5) and I am having problems.
When I try to publish, I get the following error:
Failed to complete network deployment task. (Failed to connect to the remote computer ("###. ###. ###. ###") using the specified process ("Web Deployment Agent Service") because the server did not respond. Verify that the process ("Web Deployment Agent Service") runs on a remote computer computer. Find out more: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC .)
I checked each of the things the "learn more" link offers. I checked that MsDepSvc and WMSVC are working, and ports 80 and 8172 respond to port scans. In the publication settings for the service URL, I use the IP address ( http: //###.###.###.### ) of the remote machine. For the username, I use DomainName \ Administrator, which I use to log in using RDP.
I posted on the MSDN Forums where a member suggested that I cancel the website deployment tool from V2.0 to V1.1, which I did, but did not change anything.
Following the tips in the answer to this SO Question , I tried to start msdeploy from the command line.
From the command line on the server, I get:
C: \ Program Files \ IIS \ Microsoft Web Deploy> msdeploy -verb: dump -source: dirpath = c: \ temp, computername = http: // SeverName: 80 / msdeployagentservice, username = Administrator, password = XXXX -verbose -debug Verbose: using the identifier 'c12c3392-2290-44b7-9434-dbd0ff5f9385' to connect to a remote server. Verbose: Preauthenticate remote agent URL ' http: // ServerName: 80 / msdeployagentservice ' as 'Administrator'. MSDeploy.dirPath (name = MSDeploy.dirPath) c: \ temp (name = dirPath) (keyAttribute = c: \ temp) (linkName = Child1)
From the command line on the dev machine, I get:
C: \ Program Files \ IIS \ Microsoft Web Deploy V3> msdeploy -verb: dump -source: dirpath = c: \ temp, computername = http: //###.###.###.###: 80 / msdeployagentservice, username = Administrator, password = XXXX -verbose -debug Information: Use the identifier '7f0b7d5b-e202-424c-a7dd-246920253081' to connect to the remote server. Verbose: pre-authentication remote agent URL ' http: //###.###.###.###: 80 / msdeployagentservice ' as "Administrator". Verbose: pre-authentication of the remote agent URL ' http: //###.###.###.###: 80 / msdeployagentservice ' as 'Administrator'. Error code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC Additional information: Failed to connect to the remote computer ("###. ###. ###. ###") using ("Web Deployment Agent Service") because the server did not respond. Verify that the process ("Web Deployment Agent Service") is running on the remote computer. http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC . Find out more: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC . ---> Microsoft.Web.Deployment.DeploymentException: an object of type 'dirPath' and the path 'c: \ temp' cannot be created. ---> System.Net.WebException: the remote server responded with an error: (400) Bad request. in System.Net.HttpWebRequest.GetResponse () at Microsoft.Web.Deployment.AgentClientProvider.GetHttpResponse (HttpWebRequest request) --- End of internal exception stack check --- --- End Internal exception stack trace --- with Microsoft.Web .Deployment.DeploymentManager.CreateObjectPrivate (DeploymentProviderContext providerContext, DeploymentBaseOptions baseOptions, DeploymentObject sourceObject, String serverVersion) at Microsoft.Web.Deployment.DeploymentManager.CreateObject (DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions) at MSDeploy.MSDeploy.CreateObject (DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions) at MSDeploy.MSDeploy.ExecuteWorker () in MSDeploy.MSDeploy.Execute ()
in MSDeploy.MSDeploy.Main (String [] unusedArgs) Number of errors: 1.
Using Wireshark, I found that I am logging in, but after POST /MSDEPLOYAGENTSERVICE I get a 400: Bad error message that looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">\r\n <HTML><HEAD><TITLE>Bad Request</TITLE>\r\n <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>\r\n <BODY><h2>Bad Request - Invalid Content Length</h2>\r\n <hr><p>HTTP Error 400. There is an invalid content length or chunk length in the request.</p>\r\n </BODY></HTML>\r\n
The only thing I could find mentioned was this specific behavior: Microsoft Support Article for ISA Server 2000.
What else should I watch?