.NET 3.5 项目中的错误显示为 .NET 2.x
虽然我的 ASP.NET 项目使用框架 3.5 版,但事件日志记录来自框架 2.X 版的错误,如下所示:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 2009-05-19
Time: 17:04:29
User: N/A
Computer: XXXXXXXXXX
Description:
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/234989001/Root
Process ID: 8912
Exception: System.Web.HttpException
Message: The remote host closed the connection. The error code is 0x80072746.
While my ASP.NET project uses version 3.5 of the framework, the event log registers errors as coming from version 2.X of the framework such as this:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 2009-05-19
Time: 17:04:29
User: N/A
Computer: XXXXXXXXXX
Description:
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/234989001/Root
Process ID: 8912
Exception: System.Web.HttpException
Message: The remote host closed the connection. The error code is 0x80072746.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
.NET 2.0、3.0 和 3.5 均基于 2.0 CLR。 你看到的版本是CLR版本,而不是Framework版本,所以一切都很好。
.NET 2.0, 3.0 and 3.5 are all based on the 2.0 CLR. The version you see is the CLR version, not the Framework version, so everything is fine.
ASP.NET 的版本号与底层 .Net 框架不同。
ASP.NET 2.0.50727.0 可以与 .Net 3.5 一起运行 - 您的错误消息报告了正确的版本。
ASP.NET has a different version number to the underlying .Net framework.
ASP.NET 2.0.50727.0 can runs with .Net 3.5 - your error message is reporting the correct version.
有关更多信息,我发现 Scott Hanselman 的这篇文章内容丰富:
How to set an IIS Application or AppPool to使用 ASP.NET 3.5 而不是 2.0
For more information, I found this post by Scott Hanselman informative:
How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0