2

我有一个不可能的时间让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

这里正是我所做的:

  1. 安装2008 R2标准
  2. 激活的Windows,并启用了远程桌面
  3. 安装必要的角色服务的Web服务器角色(普通HTTP,asp.net ,日志记录,跟踪,管理服务和FTP)
  4. 启用管理服务
  5. 通过网络可执行文件安装.Net Framework 4.0
  6. 新增FTP发布到默认的Web站点
  7. 交换默认网站应用程序池ASP.NET 4.0(集成)
  8. 增加了一个 'Test.aspx的' 文件到Inetpub \ wwwroot文件夹(以下内容)
  9. 打开浏览器到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> 
+1

我在使用.NET 4.0 IIS7.5 WIN2008 R2 x64的完全相同的问题。 任何人都找到了解决方案...我已经尝试了所有我能想到的! – 2010-08-12 13:31:58

+0

重新启动服务器似乎已经修复它...似乎修复大多数Windows问题! – 2010-08-12 13:47:28

回答

0

这可能是奇怪..但单独做上述什么说一下应用程序的所有其他网站(下面的链接)。主机文件更改或在框架和framework64文件夹上执行iisreg ..没有为我修复类似的问题。

我的应用程序可能有一些32位的依赖关系,这也导致了上述错误(而不是通常说错误的二进制格式) 我改变了我的应用程序池允许32位模式(WoW模式),然后我得到二进制格式问题报告..然后我固定要解决的问题是

有建议

其他站点:

4

同时使用反射来调试外部组件我遇到了同样的问题。

该程序与我的DEVPATH环境变量混淆,我看到了与此处所述相同的症状。 重置(清空)DEVPATH解决了这里的问题。

似乎没有关系,但如果发现这是OP的问题,我认为这是值得报告的问题,这将是如此晦涩难懂。

+0

是的,我的情况确实也是这个问题。谢谢。 – pkExec 2013-02-15 15:28:25

+0

我不会猜到!感谢你的分享。 – 2013-05-01 01:49:21

相关问题