[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 787
  • Last Modified:

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.
0
Niyas
Asked:
Niyas
1 Solution
 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now