I've been working on a webservice, and testing it by viewing it in a browser directly from VS2012, but now I need to host it in IIS, and for some reason, it simply will not work.
I've tried publishing it as a new web application under my local IIS. It shows up as it should, but when I switch to Content View in IIS, right-click the MyService.svc
file, and choose "browse", all I get is a new web-browser window saying the site was not found.
To check if the problem was relating to something in my service, or was general, I tried creating a new test-service from a VS project template (a new WCF Service Application), which i compiled, ran in my browser nicely, then tried to publish to IIS, with the same result.
A little extra info:
I've been able to publish a website in IIS recently, and it works fine - I really thought the process was supposed to be just about the same for a service, but apparently I'm missing something.
Update: A little extra info in response to comments below:
.asmx
file, only a .svc
file, a web.config
, and a bin/
folder in the folder where the service is published. Any tips as to what I can try in order to resolve this will be greatly appreciated....
For the record, this was what solved the problem for me: