简体   繁体   English

Windows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP错误500.0

[英]Windows Server 2008 R2 + IIS 7.5 + ASP.NET 4.0 = HTTP Error 500.0

I am having an impossible time getting asp.net 4.0 to work in any fashion at all. 我根本无法使asp.net 4.0以任何方式工作。 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. 实际上,我完全擦除了服务器,重新安装了Server 2008 R2 Standard(在VMWare ESXi盒上运行,没关系),甚至无法使.aspx测试页正常工作。

Here is exactly what I did: 这正是我所做的:

  1. Installed 2008 R2 Standard 已安装2008 R2标准版
  2. Activated windows and enabled Remote Desktop 激活的窗口和启用的远程桌面
  3. Installed the Web Server Role with the necessary role services(common http, asp.net, logging, tracing, management service and FTP) 安装了具有必要角色服务的Web服务器角色(常见的http,asp.net,日志记录,跟踪,管理服务和FTP)
  4. Enabled the management service 启用管理服务
  5. Installed .Net Framework 4.0 via web executable 通过Web可执行文件安装了.Net Framework 4.0
  6. Added FTP publishing to the default web site 将FTP发布添加到默认网站
  7. Switched default web site application pool to asp.net 4.0 (integrated) 将默认的网站应用程序池切换到asp.net 4.0(集成)
  8. Added a 'test.aspx' file to the inetpub\\wwwroot folder (contents below) 在inetpub \\ wwwroot文件夹中添加了一个“ test.aspx”文件(下面的内容)
  9. Opened a browser to http://localhost/test.aspx and received a 500.0 error (also below) 打开浏览器访问http://localhost/test.aspx,并收到500.0错误(也在下面)

What am I missing? 我想念什么? I haven't touched IIS in a while (3+ years), so it could be something stupid/trvial. 我已经有一段时间(3年以上)没有接触过IIS,所以它可能很愚蠢/琐碎。 Please point it out, call me a noob; 请指出,称我为菜鸟。 my ego can take it. 我的自我可以接受。

Thanks, Dave 谢谢戴夫

test.aspx 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> 

Error page: 错误页面:

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

Trace: 跟踪:

And in my trace file I get: 在我的跟踪文件中,我得到:

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)

The application error log shows: 应用程序错误日志显示:

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> 

I encountered this same problem while using Reflector to debug external assemblies. 我在使用Reflector调试外部程序集时遇到了同样的问题。

The program messed with my DEVPATH environment variable and I saw the same symptoms as described here. 该程序弄乱了我的DEVPATH环境变量,并且看到了与此处所述相同的症状。 Resetting (emptying) the DEVPATH solved the issue here. 重置(清空) DEVPATH解决此问题。

Seems unrelated, but it would be so obscure to find that this is the problem in the OP's case that I think it's worth reporting. 似乎无关紧要,但是发现这是OP的问题,我认为值得报告,这太晦涩了。

This might be strange.. but doing the above alone and what all other sites (links below) said about application.host file changes or executing iisreg on framework and framework64 folder .. didnt fix a similar problem for me. 这可能很奇怪..但是,单独进行上述操作以及所有其他站点(下面的链接)所说的关于application.host文件更改或在framework和framework64文件夹上执行iisreg的问题对我来说都没有解决。

My application probably had some 32 bit dependencies which were also causing the above error (instead of saying wrong binary format as it happens usually) I changed my application pool to allow 32 bit mode (WoW mode) and then I got the binary format problem reported..which I then fixed to solve the problems 我的应用程序可能具有一些32位依赖性,这也导致了上述错误(而不是说通常发生的错误二进制格式),我将应用程序池更改为允许32位模式(WoW模式),然后收到了二进制格式问题的报告。 ..然后我解决了问题

Other sites that had suggestions: 其他提出建议的网站:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IIS 7.5上Windows 2003 R2 Enterprise上的Asp.net - Asp.net on Windows 2003 R2 Enterprise on IIS 7.5 2008 R2 IIS7.5上的ASP.NET MVC无法加载 - ASP.NET MVC on 2008 R2 IIS7.5 Not Loading 在Windows Server 2008 R2 SP1的IIS 7.5上注册.NET 4.5的安全方法 - Secure way for registering .NET 4.5 on IIS 7.5 on Windows Server 2008 R2 SP1 asp.net中Windows Server 2008 R2上的PDF缩略图 - PDF Thumbnails on windows server 2008 R2 in asp.net Windows Server 2008 R2 (VPS) 上的 IIS7.5 - POST 请求出现错误 400 - IIS7.5 on Windows Server 2008 R2 (VPS) - Error 400 on POST Request 在ASP.NET中连接到SQL Server 2008 R2错误 - Connection to sql server 2008 R2 error in asp.net 回发asp.net 4上的IIS 8.5 Windows Server 2012 R2错误“ HostingEnvironment导致关闭” - IIS 8.5 Windows Server 2012 R2 error “HostingEnvironment caused shutdown” on postback asp.net 4 过去可以使用的ASP.NET(VB)应用程序现在在2008 R2 IIS 7.5上提供“重载解析失败” - ASP.NET (VB) app used to work, now gives “Overload resolution failed” on 2008 R2 IIS 7.5 Windows 2008 Server x64上的IIS 7.5 ASP 32位AppPool上的500.0 0x800700c1 - 500.0 0x800700c1 on IIS 7.5 ASP 32-bit AppPool on Windows 2008 Server x64 IIS 7.5和Windows 2008上的ASP.NET会话状态服务器-不起作用 - ASP.NET Session State Server on IIS 7.5 and Windows 2008 - Not Working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM