I'm currently facing an issue I've never seen Before. I have a static .wsdl file set in the site directory and if I navigate to the .svc file it shows up just fine, but as soon as I navigate to http://www.foo.bar/service.wsdl to download the WSDL it throws up an Error 500.0
Module IIS Web Core
Notification AuthenticateRequest
Handler StaticFile
Error Code 0x80070542
Requested URL http://localhost/service.wsdl
Physical Path C:\sites\service.wsdl
Logon Method Anonymous
Logon User Anonymous
I know that there has been some "tuning" being made on this server, so that might be a reason, but is there a way to find out why it refuses to serve up the file?
The reason for me not going for the ?wsdl option is that the WSDL need to have some endpoints redefined due to Proxies etc.
Any help will be appreciated.
You'll need to add .WSDL to the list of file types that IIS will serve up.
Open IIS Manager, and in the root, click on MIME types.
Add .wsdl
to the list, the type is text/xml
.
This should fix your problem.
User contributions licensed under CC BY-SA 3.0