Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can't load system.web.extensions - when move to Visual studio 2008

1 view
Skip to first unread message

WISEMANOFNARNIA

unread,
Jan 25, 2009, 11:32:48 AM1/25/09
to
I had a project at work that uses ajax. I use Visual studio 2005, and
probably an older version of dot net. Then at home I loaded visual
studio 2008 and dot net v3.5. Now my project will not compile on my
home computer. It says "could not load file or assembly
system.web.extensions". Is this an ajax library? Doesn't the latest
Visual studio have ajax without needing a library?
Any help is appreciated.
-- Marvin

Cowboy (Gregory A Beamer)

unread,
Jan 25, 2009, 9:53:03 PM1/25/09
to
Open web.config and see if your web.extensions are 3.5 or 1.x. If 1.x, you
will have to update.

I say this with a caveat, however, as you may have to ship the code back to
work. In this case, you need to download the AJAX 1.x bits from www.asp.net
(they are a separate download) and install on your machine. If you ran an
upgrade on the web project, at home, you will have to replace the current
updated web.config with the one from work.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"WISEMANOFNARNIA" <COHEN...@LYCOS.COM> wrote in message
news:c4ad5d28-2917-4739...@a39g2000prl.googlegroups.com...

WISEMANOFNARNIA

unread,
Feb 1, 2009, 9:33:35 AM2/1/09
to
I read your post, but:
Why doesn't the following work: - I load my visual studio 2005 project
into visual studio 2008 (minus the web.config, which I just generate
anew) and then I compile and get the following error:
'could not load file or assembly 'System.Web.Extensions' v1.0....etc.
(this is an ajax library)
So I go to the menu and look at 'references', and find there is a
library called 'System.Web.Extensions v2.0.50727.
My web.config does not have any references to 'System.Web.Extensions'
no matter what version, because I generated it anew. So instead, I
just do a find/replace throughout the code of every 'v1.0.... by
v2.0.50727. All the pages that use ajax have a reference to
'system.web.extensions', and this will replace the v1.0 by the new
version, and they should find the new version and compile.
But what happens is, they don't.
I get the same error again, except for the new version:
'Could not load file or assembly 'System.Web.Extensions'.
I really don't want to go to the asp.net website and load the old
version of Ajax, given the fact that Visual Studio 2008 with Framework
3.5 has it built in. Why go backwards? But what I just tried didn't
work.
Thanks,
Marv

0 new messages