Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP Error 500.0
    primarykey
    data
    text
    <p>I am having an impossible time getting asp.net 4.0 to work in any fashion at all. In fact, I completely wiped my server, reinstalled with Server 2008 R2 Standard (running on a VMWare ESXi box, not that it should matter), and cannot even get a test .aspx page to work. </p> <p>Here is exactly what I did: </p> <ol> <li>Installed 2008 R2 Standard</li> <li>Activated windows and enabled Remote Desktop</li> <li>Installed the Web Server Role with the necessary role services(common http, asp.net, logging, tracing, management service and FTP)</li> <li>Enabled the management service</li> <li>Installed .Net Framework 4.0 via web executable</li> <li>Added FTP publishing to the default web site</li> <li>Switched default web site application pool to asp.net 4.0 (integrated)</li> <li>Added a 'test.aspx' file to the inetpub\wwwroot folder (contents below)</li> <li>Opened a browser to <a href="http://localhost/test.aspx" rel="nofollow noreferrer">http://localhost/test.aspx</a> and received a 500.0 error (also below)</li> </ol> <p>What am I missing? I haven't touched IIS in a while (3+ years), so it could be something stupid/trvial. Please point it out, call me a noob; my ego can take it.</p> <p>Thanks, Dave</p> <p>test.aspx </p> <blockquote> <pre><code>&lt;% @Page language="C# %&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Test.aspx&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;asp:label runat="server" text="This is an asp.net 4.0 label" /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </blockquote> <p>Error page: </p> <pre><code>Module AspNetInitClrHostFailureModule Notification BeginRequest Handler PageHandlerFactory-Integrated-4.0 Error Code 0x80070002 Requested URL http://localhost:80/test.aspx Physical Path C:\inetpub\wwwroot\test.aspx Logon Method Not yet determined Logon User Not yet determined </code></pre> <p>Trace: </p> <p>And in my trace file I get:</p> <pre><code>96. view trace Warning -SET_RESPONSE_ERROR_DESCRIPTION ErrorDescription An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. 97. view trace Warning -MODULE_SET_RESPONSE_ERROR_STATUS ModuleName AspNetInitClrHostFailureModule Notification 1 HttpStatus 500 HttpReason Internal Server Error HttpSubStatus 0 ErrorCode 2147942402 ConfigExceptionInfo Notification BEGIN_REQUEST ErrorCode The system cannot find the file specified. (0x80070002) </code></pre> <p>The application error log shows: </p> <pre><code>Log Name: Application Source: Microsoft-Windows-IIS-W3SVC-WP Date: 5/28/2010 2:08:10 PM Event ID: 2299 Task Category: None Level: Error Keywords: Classic User: N/A Computer: win-ltfkdo1dnfp Description: An application has reported as being unhealthy. The worker process will now request a recycle. Reason given: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. The data is the error. Event Xml: &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt; &lt;System&gt; &lt;Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" /&gt; &lt;EventID Qualifiers="49152"&gt;2299&lt;/EventID&gt; &lt;Version&gt;0&lt;/Version&gt; &lt;Level&gt;2&lt;/Level&gt; &lt;Task&gt;0&lt;/Task&gt; &lt;Opcode&gt;0&lt;/Opcode&gt; &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt; &lt;TimeCreated SystemTime="2010-05-28T21:08:10.000000000Z" /&gt; &lt;EventRecordID&gt;1663&lt;/EventRecordID&gt; &lt;Correlation /&gt; &lt;Execution ProcessID="0" ThreadID="0" /&gt; &lt;Channel&gt;Application&lt;/Channel&gt; &lt;Computer&gt;win-ltfkdo1dnfp&lt;/Computer&gt; &lt;Security /&gt; &lt;/System&gt; &lt;EventData&gt; &lt;Data Name="Reason"&gt;An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. &lt;/Data&gt; &lt;Binary&gt;02000780&lt;/Binary&gt; &lt;/EventData&gt; &lt;/Event&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload