I have a similar question to this one;
- IIS 7.5
- Server 2008
- ASP.Net 4.0 web site
The error I get when trying to run the site is this:
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler....
Most likely causes:
- The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different hander.
Now here comes the weird part:
THE WEIRD PART
The weird part is that on the develop server -- which is similar in every aspect to the production server -- everything runs smoothly.
Here's a list of things I cannot try, because I don't want to mess with the sever (it hosts many other sites):
- Reinstalling .Net
- Reinstalling IIS
- Reinstalling anything
- Running aspnet_regiis
Here's what I did try:
- Republishing the site
- Restarting the application pool
- Changing the application pool to .Net 2.0 and back to .Net 4.0
- Switching around between Integrated and Classic pipeline mode
- Enabling 32-bit mode
- Taking a look at Handler Mappings
Eventually I created a new application pool, and it sort of started working.
Q) "Sort of"?
A) Yes, sort of.
Now the site only works when the (new) app pool is set to .Net 4.0
, Integrated
,
and the site's Authentication has ASP.NET Impersonation
set to Disabled
.
Any change to these settings sets the server yelping "404.17" all over again.
Q) What's wrong with that?
A) What's wrong with that is that I NEED ASP.NET Impersonation for the site to function properly.
As always, your guidance is most needed.