Decrease Font Size
Increase Font Size
   BLOG

The requested content appears to be script and will not be served by the static file handler

by bryian 3. July 2010 11:48

The requested content appears to be script and will not be served by the static file handler.|

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.|

HTTP Error 500.21 - Internal Server Error |

HTTP Error 404.17 - Not Found

 

Problem

A couple of days ago I was deploying a web application written in VS 2010 to the newly created virtual machine. The virtual machine is running on Microsoft Windows Server 2008. Initially, I received the error message

"The requested content appears to be script and will not be served by the static file handler."

I did some research and found out that I should change the application pool from integrated to classis. I did that, and then I received another error message

"HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode."

I read some article and someone suggest that we should include this line

<validation validateIntegratedModeConfiguration="false" />

in the web.config file. Run the application and get a different error message,

"HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list".

I don't remember how I get rid of the error but I received another error message

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

Finally, I started to realize that the IIS and ASP.NET were not installed correctly. I found the solution to my puzzle on MSDN, the work around is manually registering ASP.NET by running the ASP.NET IIS Registration tool. For more information, see ASP.NET IIS Registration Tool (Aspnet_regiis.exe). I hope you all will find this information useful.

 

Resources

Running Web Applications on Windows Server 2008 with IIS 7.0 and Visual Studio

Tags: , ,

Error

Comments (2) -

6/17/2010 1:06:59 PM #

Framed Art Pictures

We have face this problem sometimes. I think this post will make everyone clear. Thanks for the nice post.

Framed Art Pictures United States

12/27/2010 12:50:50 PM #

Perelli

using the points from here solved my problem:
http://forums.iis.net/p/1160143/1914365.aspx

just used aspnet_regiis -i from the asp.net 4 directory:
C:\Windows\Microsoft.NET\Framework\v4.0.30319

Perelli Denmark

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading