Saturday, July 30, 2011

Error Hosting WCF In IIS: HTTP Error 404.17 - Not Found - The requested content appears to be script and will not be served by the static file handler.

I was facing above error when trying to host a WCF application in IIS7.5. Tried few suggested solutions from google searches but they just don't work out, until I came across a post in MSDN forum. The link is at below:
http://social.msdn.microsoft.com/Forums/en/adodotnetdataservices/thread/f447c6df-6402-4a13-875c-925445fd7be8

According to the post, the script map for the .svc extension are not registered. Navigate to the WCF folder in .NET v3.0 folder to register it and it solved my problem.

No comments:

Post a Comment