我有一个不可能的时间让asp.net 4.0以任何方式工作。事实上,我完全擦掉了我的服务器,并重新安装了Server 2008 R2 Standard(运行在VMWare ESXi盒子上,并非它应该重要),甚至无法让测试.aspx页面正常工作。Windows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP错误500.0
这里正是我所做的:
- 安装2008 R2标准
- 激活的Windows,并启用了远程桌面
- 安装必要的角色服务的Web服务器角色(普通HTTP,asp.net ,日志记录,跟踪,管理服务和FTP)
- 启用管理服务
- 通过网络可执行文件安装.Net Framework 4.0
- 新增FTP发布到默认的Web站点
- 交换默认网站应用程序池ASP.NET 4.0(集成)
- 增加了一个 'Test.aspx的' 文件到Inetpub \ wwwroot文件夹(以下内容)
- 打开浏览器到http://localhost/test.aspx并收到500.0错误(也在下面)
我在想什么?我有一段时间(3年以上)没有碰过IIS,所以它可能是愚蠢的/平凡的。请指出,请给我打电话;我的自我可以接受。
谢谢, 戴夫
Test.aspx的
<% @Page language="C# %> <html> <head> <title>Test.aspx</title> </head> <body> <asp:label runat="server" text="This is an asp.net 4.0 label" /> </body> </html>
错误页面:
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
跟踪:
而且在我跟踪文件获取:
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)
应用程序错误日志显示:
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:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
<EventID Qualifiers="49152">2299</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2010-05-28T21:08:10.000000000Z" />
<EventRecordID>1663</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>win-ltfkdo1dnfp</Computer>
<Security />
</System>
<EventData>
<Data Name="Reason">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.
</Data>
<Binary>02000780</Binary>
</EventData>
</Event>
我在使用.NET 4.0 IIS7.5 WIN2008 R2 x64的完全相同的问题。 任何人都找到了解决方案...我已经尝试了所有我能想到的! – 2010-08-12 13:31:58
重新启动服务器似乎已经修复它...似乎修复大多数Windows问题! – 2010-08-12 13:47:28