Sorry for the vague name, as I really can't explain this problem succinctly.
Basically I have Windows Server 2008 x64, IIS7, ASP.NET 2.05, and I have a site running in Classic AppPool (and no, I can't work in Integrated).
When I try to download the * .aspx file for the first time (i.e. after installing the site, rebooting the server, etc.), I get this error:
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Module: IsapiModule
Notification: ExecuteRequestHandler
Handler: PageHandlerFactory-ISAPI-2.0-64
Error Code: 0x800710dd
Login Method: Anonymous
Login User: Anonymous
The handler is IIS7 by default:
<add name="PageHandlerFactory-ISAPI-2.0-64" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
I even tried adding to my own aspx handler, which looked like this:
<add name="aspx" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
The only thing that was done was to change the part of the error notification handler to say IsapiModule.
It is strange that this error occurs only for the first time (or when the server has been idle for several hours). As soon as I see this error, if I refresh the page, everything will be fine and dandy again.
I even tried deleting the web.config file and did nothing.
I can not find a single answer for this problem on the Internet.
Edit: I have enabled Failed Request Tracking, and this is what it shows:
MODULE_SET_RESPONSE_ERROR_STATUS Warning ModuleName = "IsapiModule", Notification = "EXECUTE_REQUEST_HANDLER", HttpStatus = "500", HttpReason = "Internal server error", HttpSubStatus = "0", ErrorCode = 0, Identifier = 0, Identifier 0, Identifier 0, Error ID, Data ID, Error, Error, Code, Error, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Error, Code, Error, Code, Error, Code, Error, Code, Error, Code, Error, Code, Error Code, Error Code, Error Code, Error Code, Error Code, Error ID, Error ID, Error ID, Error ID, Error ID, Error Code
And right before the error, it shows:
NOTIFY_MODULE_START ModuleName = "IsapiModule", Notification = "EXECUTE_REQUEST_HANDLER", fIsPostNotification = "false", fIsCompletion = "false"
Now, when I compare this to a successful launch, the difference is that the error creates MODULE_SET_REPONSE_ERROR_STATUS, while the successful launch fails (and then continues to produce the correct HTML output).
Change I took a simple application and tried to execute it, and I got the same error. But , when the application was in integrated mode, it ran perfectly ! Unfortunately, I can’t transfer our application to the integrated one for reasons that I can’t specify, but I narrowed it down to the application pool. Also, I do not need to restart the server in order to reproduce the error; instead, the utility for the application pool will be used.
Summary:
- As mentioned below, there is nothing in the event logs to indicate a denial. I looked through all the logs in the event viewer