I got this error when I tried to use a WCF
. The full error message is “The requested content appears to be script and will not be served by the static file handler.”
There might have been the different solution I will explain here which solution works for me.
Go to Inetmgr and Right click on the particular site and go to Manage Application and then click on Advanced Setings… as shown in the figure below:
Then in the Advanced Settings dialogbox. Click on Application Pool and I have changed to ASP.NET v4.0 as shown in the fig as below and now it works fine.
Also, you can check out my previous posts on: