Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web deployment task failed when using WebDeploy in VS2012

When I hit publish on a VS2012-MVC4-Project, enter my credentials (local domain) and hit "Validate connections" I get the error-message:

"Web deployment task failed. (Unexpected end of file has occured. The following elements are not closed: results. Line 1, position 586.)"

The server is running Win Srv 2008 R2, IIS 7.5, Web Deploy 3.0.

Importing using the import-option on the target IIS-Management-Studio and selecting the ZIP-file create by VS will work without any problems.

The strange thing is, that WebDeploy already worked. This error comes and goes and I can't figure out, what the reason is.

Sounds like the WebDeploy-service isn't responding well-formed.

My settings are: Service UR: http://{NAMEOFSERVER} Site/application: Default Web Site

like image 361
Alexander Schmidt Avatar asked Oct 18 '12 16:10

Alexander Schmidt


People also ask

How do you check Webdeploy is installed or not?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.

Can't connect to remote server web deploy?

This error indicates that you cannot connect to the server. Make sure the service URL is correct,firewall and network settings on this computer and on the server computer are configured properly,and the appropriate services have been started on the server.


1 Answers

I had the same issue, even though I was pointing to the proper url. It turns out I had Fiddler running and that was interfering with the request/response.

Makes sure you don't have any packet sniffers or proxy services running.

like image 67
unforgiven1987 Avatar answered Oct 19 '22 07:10

unforgiven1987