首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Windows 2008 R2 +IIS7.5+ ASP.NET 4.0 = HTTP 500.0

Windows 2008 R2 +IIS7.5+ ASP.NET 4.0 = HTTP 500.0
EN

Stack Overflow用户
提问于 2010-06-02 21:43:28
回答 2查看 15K关注 0票数 2

我有一个不可能的时间让asp.net 4.0以任何方式工作。事实上,我完全删除了服务器,重新安装了服务器2008 R2标准(运行在VMWare ESXi框上,这并不重要),甚至无法让测试.aspx页面正常工作。

这正是我所做的:

  1. 安装2008年R2标准
  2. 激活窗口和启用远程桌面
  3. 使用必要的角色服务(常见的http、asp.net、日志记录、跟踪、管理服务和FTP)安装Web角色
  4. 启用管理服务
  5. 通过web可执行文件安装.Net Framework4.0
  6. 将FTP发布添加到默认网站
  7. 将默认网站应用程序池切换到asp.net 4.0 (集成)
  8. 将“test.aspx”文件添加到inetpub\wwwroot文件夹(以下内容)
  9. 打开浏览器到http://localhost/test.aspx,并收到一个500.0错误(也在下面)

我遗漏了什么?我已经有一段时间没有接触到IIS了(3+年),所以它可能是愚蠢/流行的东西。请指出它,叫我一个菜鸟,我的自我可以接受它。

谢谢,戴夫

test.aspx

<% @Page language="C# %> Test.aspx “

错误页面:

代码语言:javascript
运行
复制
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

追踪:

在我的追踪文件里我得到:

代码语言:javascript
运行
复制
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)

应用程序错误日志显示:

代码语言:javascript
运行
复制
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> 
EN

Stack Overflow用户

发布于 2011-10-28 13:39:21

这可能很奇怪..。但是,仅做上述工作,以及所有其他站点(下面的链接)关于application.host文件更改或在框架和framework64文件夹上执行iisreg的内容。没有为我解决类似的问题。

我的应用程序可能有大约32位依赖项,这也导致了上面的错误(而不是像通常那样说错误的二进制格式),我更改了我的应用程序池以允许32位模式(WoW模式),然后我得到二进制格式问题reported..which,然后修复以解决这些问题。

其他有建议的网站:

票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2961837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档