VS2010 converted project invalid reference

Posted by Nathan on Stack Overflow See other posts from Stack Overflow or by Nathan
Published on 2010-04-13T15:16:27Z Indexed on 2010/04/13 15:23 UTC
Read the original article Hit count: 503

Filed under:
|
|

Opening a .Net 2 project in VS2010 it converts the project without any issues BUT when I attempt to build it fails.

The reason is that in VS2005 a reference was added to System.Web.Extensions which is a .Net 3.5 assembly. Now VS2005 never complained at this and quite happily worked but VS2010 is far more strict and won't allow it.

I've tried changing the targeted framework to .Net 3.5 but I get another situation there where the web page is never displayed, it simply hangs not even getting to Applicatin_OnStart.

Any help either on adding the reference with .Net 2 as target framework (prefered option for time) or getting the .Net 3.5 version to work would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about VS2010

Related posts about ASP.NET