How to correct the following error "The requested content appears to be script " when publishing wcf service in windows 7?

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

I get the above error when viewed my wcf page in browser. my application is 64 bit. I am running it on windows 7.
I changed my application pool to .net classic app pool. But my web appilcation is not working. then I reverted to default web site. WCF service is located inside in my web application.
LVL 1
NiyasAsked:
Who is Participating?
 
Kamal KhaleefaInformation Security SpecialistCommented:
Hi
You will need to run ServiceModelReg.exe -i from the “%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation” directory to register the script maps

you can refer here
http://daniel.streefkerkonline.com/iis-7-5-wcf-error-the-requested-content-appears-to-be-script-and-will-not-be-served-by-the-static-file-handler/


also this may help
http://udonmez.wordpress.com/2011/02/10/http-error-404-17-not-found-the-requested-content-appears-to-be-script-and-will-not-be-served-by-the-static-file-handler/

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.