I pulled my hair out for 4 hours. Here is what I used for configuration settings. In IIS (7.5 on Server 2008 R2)
I granted publishing permissions for the IIS account that I created (although I also used the server administrator account to eliminate permission problems, in the end both worked.)
I left everything else as it is. Destroyed I was a VPS, so the computer name had nothing to do with my application or domain, so I left the URL for publication as it was. I left the place to save the publication settings file as is.
In Visual Studio:
- Publish Method: Web Deployment
- Service url: https://myservice.com (no port or msdeploy here, just https url)
- site application: mysitename / myapplicationname (for me they are both the same name)
- Mark as IIS application: checked
- Leave extra files: checked
- Allow untrusted certificate: checked
For the username - I did not need to use the fully resolved name, so the user, unlike the server name \ user, worked fine.
This failed with error 404 - and if I tried to send it via http instead of https (the service url), it failed with a socket error (10054).
I checked that all the necessary services are running, and I restarted them all. I also restarted IIS (which is painful for my situation). Another nada.
Then I decided to reinstall the web deployment on the server (3.0 RC). I definitely used a custom installation, when I did this, I made sure that all components and handlers are installed (they are not installed by default). As soon as I did this, everything began to work fine.
I'm not sure I had a bad installation for the first time, but now it works fine.
El kabong
source share