mugsey
asked on
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
I have converted an asp.net app from visual studio 2005 to 2008. It works fine on my dev pc at work - I have just copied the project to my home laptop running vista and I am getting the error
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35' or one of its dependencies.
Know what steps do I need to do to get this to work?
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3
Know what steps do I need to do to get this to work?
ASKER
HI
They are in there but they are version 3.5.0.0
How can I get hold of the older version of the dlls
They are in there but they are version 3.5.0.0
How can I get hold of the older version of the dlls
You can download a .NET 2.0 redistributable, but I thought that 3.5 was just an upgrade of 2.0 as opposed to being a new version (like 1.1 and 2.0 for example).
Therefore, the newer version should be ok - have you checked that your web.config file is pointing to the correct dlls?
Therefore, the newer version should be ok - have you checked that your web.config file is pointing to the correct dlls?
ASKER
hi
Yep - I think its to do with the AJAXControlTtoolkit.dll - this is version 1.1
Now all the controls in the app are referenced like this
On each page
<%@ Register Assembly="System.Web.Exten sions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolk it" Namespace="AjaxControlTool kit" TagPrefix="cc1" %>
Now if it works on my work environmnet and not at home - I really do not want to change too much.
Hmm, what would be the best way forward.
Here is the web.config
<add assembly="System.Web.Exten sions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
<add assembly="System.Web.Exten sions.Desi gn, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD3 64E35"/>
Yep - I think its to do with the AJAXControlTtoolkit.dll - this is version 1.1
Now all the controls in the app are referenced like this
On each page
<%@ Register Assembly="System.Web.Exten
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolk
Now if it works on my work environmnet and not at home - I really do not want to change too much.
Hmm, what would be the best way forward.
Here is the web.config
<add assembly="System.Web.Exten
<add assembly="System.Web.Exten
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HI
I did that but now I get the error
The type 'System.Web.UI.ScriptManag er' exists in both 'c:\Windows\assembly\GAC_M SIL\System .Web.Exten sions\1.0. 61025.0__3 1bf3856ad3 64e35\Syst em.Web.Ext ensions.dl l' and 'c:\Windows\assembly\GAC_M SIL\System .Web.Exten sions\3.5. 0.0__31bf3 856ad364e3 5\System.W eb.Extensi ons.dll'
I did that but now I get the error
The type 'System.Web.UI.ScriptManag
ASKER
I did a search for 1.0 and replaced with 3.5.0.0 and it now compiles OK but now its unable to start debugging on the webserver. This is on my new vista laptop
Any specific error message coming up or does it just say debugging can't be started?
This has worked for me :)
Cheers