.NET 3.5项目的错误显示为.NET 2.x.

Chr*_*nce 0 .net asp.net clr error-logging

虽然我的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.
Run Code Online (Sandbox Code Playgroud)

Ore*_*ost 14

.NET 2.0,3.0和3.5都基于2.0 CLR.你看到的版本是CLR版本,而不是Framework版本,所以一切都很好.