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

  • 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.
1 Solution
Kamal KhaleefaInformation Security SpecialistCommented:
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

also this may help


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