Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web application built in .Net 3.5. Due to an upgrade to IIS7.5, I have recomplied the application using .net 4.0. Everything seems to be fine when debugging via the development server however when using IIS, I get the following error when trying to access an aspx file.

HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler. Detailed Error Information Module StaticFileModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070032 Requested URL http://localhost:80/pij/service/Gateway.aspx Physical Path C:\inetpub\wwwroot\pij\service\Gateway.aspx Logon Method Anonymous Logon User Anonymous

Prior to changing the application's app pool to v4.0 Classic I was getting the following.

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

If anyone has any ideas how I can fix this, I'd be most grateful thanks

share|improve this question
up vote 1 down vote accepted

3 tips that might be usefull:


share|improve this answer
thanks, getting closer but still not there. 1 is good, 2 seems fine, 3 - I presume you mean that it was compiled using ver 4 right? – Chin Nov 16 '10 at 15:02
3 - yes i meant that. Please try also to see if by any change you have aspx in the mime types... if so remove it as this is not a static file... – byte_slave Nov 16 '10 at 15:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.