?
Solved

Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0

Posted on 2010-04-08
9
Medium Priority
?
320 Views
Last Modified: 2013-11-26
I just got a new machine at work with Windows 7 on it. I installed Visual Studio 2005 with Service Pack 3 and the other service pack I needed to install so Visual Stuido 2005 will run on Windows 7.

When I open an existing project, make some updates, and publish to my production server, I get that System.Web.Extensions error.

I have NO REFERENCE to System.Web.Extensions version 3.5.0.0 ANYWHERE in my web.config file, so I don't know why it's even looking for it in the first place.

This is extremly urgent (and not to mention frustrating). Please advise how to fix this. I'd give you 1000 points if I could.

Thanks in advance.
0
Comment
Question by:infotechelg
  • 5
  • 4
9 Comments
 
LVL 16

Accepted Solution

by:
13598 earned 2000 total points
ID: 30137190
Look in your project references to see if maybe you have it there as a reference. If so, remove it and rebuild it..
0
 
LVL 16

Expert Comment

by:13598
ID: 30137249
And you could check your bin folder and see if it is there.
0
 

Author Comment

by:infotechelg
ID: 30137680
Forgive my ignorance, but how do I do this? I see no place to do this in Solution Explorer. I see how to "Add Reference" if I right click on the Web Site (it's a Web site, not a project), but don't see how to edit or delete references. Again, I can't remove the assembly from the web.config file because it doesn't exist. Again, this error only happens when I publish to production.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Author Comment

by:infotechelg
ID: 30137930
Another thing that's interesting is since I've opened and updated these projects on my new Windows 7 box, all of these assemblies have been added to the web.config file that i've never seen before. Things like System.Data.Linq (Version 3.5.0.0) and things like that. I try to delete them out because they're unnecessary, but every time I bulid the solution, they automatically get added back into the web.config file.
0
 
LVL 16

Expert Comment

by:13598
ID: 30137955
In solution explorer right click on the website and select Property Pages
0
 
LVL 16

Expert Comment

by:13598
ID: 30138090
It sounds like you must have installed .net framework 3.5.
0
 

Author Comment

by:infotechelg
ID: 30138750
I did not find any references to Extensions v. 3.5.0.0 but I did see all of the other 3.0 and 3.5 references and deleted those. That prevented the unnecessary assembly references from coming back in the web.config file! I published to production and that seemed to do the trick (even though I didn't see an reference to Extensions 3.5.0.0 to begin with). So, for now anyway, it seems that did the trick. Thanks!
0
 
LVL 16

Expert Comment

by:13598
ID: 30139148
The assembly name is asp.net ajax so if you removed that one it would have removed extensions. I'm glad it worked. If you don't need .net framework 3.5 you may want to delete it and re-install 2.0 after uninstalling 3.5. 3.5 automatically adds these references.
0
 

Author Comment

by:infotechelg
ID: 30139453
i'll try that. Thanks, 13598.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question