Errors from .NET 3.5 project show up as .NET 2.x

While my ASP.NET project is using version 3.5 of the framework , the event log logs errors as coming from version 2.X of the framework , such as:

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.

      

0


a source to share


3 answers


.NET 2.0, 3.0 and 3.5 are all based on version 2.0 of the CLR. The version you see is the CLR version, not the Framework version, so everything is fine.



+14


a source


ASP.NET has a different version number for the underlying .Net framework.



ASP.NET 2.0.50727.0 can work with .Net 3.5 - your error message says the correct version.

+1


a source


For more information, I found this post by Scott Hanselman:

How to install an IIS app or AppPool to use ASP.NET 3.5 instead of 2.0

+1


a source







All Articles