Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.web.extensions reference dll is missing from the 2.0 framework .net references in VS2010?

I'm having a similar problem as this person.

I'm trying to work with an old project that uses 2.0 framework in visual studio 2010. However it won't recognize that the System.web.extensions dll is part of that framework when it filters to 2.0 framework on the add reference dialog. And no, my framework is just set to ".NET Framework 2.0" as there is no 2.0-client.

Any help would be appreciated.

Right now I just manually went into the csproj file with notepad and added in the reference. This seems to work. Is there a way that I can do this with the other projects I'm working on, or will I just need to manually add it in the csproj files for each one?

like image 580
colinbashbash Avatar asked Mar 10 '11 19:03

colinbashbash


2 Answers

I just had this problem with an old project I needed to work on.

I installed version 1.0 of the AJAX web extensions from http://go.microsoft.com/fwlink/?LinkID=77296 to get the older version of the file, then in my project, I referenced the dll by linking to System.Web.Extensions.dll in the folder C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

like image 103
ikariw Avatar answered Oct 12 '22 14:10

ikariw


The client profile feature was added with VS2008 SP1. It doesn't go back with client profiles for .NET 2.0 projects.

It seems that the System.Web.Extensions.dll assembly was not part of the GAC when installed - you had to manually include it in your bin directory. See this forum post for people having similar issues.

I would think you should be able to add the assembly by browsing for it when you add a reference instead of having to fire up Notepad and add it in that way.

I hope this helps. Good luck!

like image 29
David Hoerster Avatar answered Oct 12 '22 15:10

David Hoerster