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
Got it. After I right-clicked the "Default Web Site" in IIS-Manager and clicked on "Configure for Web Deploy Publishing..." I saw, that my publishing URL is not http://{server}:8172 but https://{server}:8172.
So to everyone with that problem: It has to do with SSL and the certificate. You have to trust the cert after you type in this Service URI inside the Publishing assistent. Then it worked!