I have been developing a couple AJAX projects over the last month. I installed AJAX and the control toolkit extensions. I am using Visual Studio 2005 Professional Edition and using the built-in web server that Visual Studio uses to test my pages. Everything
was working good until yesterday afternoon. Now for some reason, whenever I go to an AJAX enabled page, I get the following error:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
First I tried restarting the computer. Then I tried removing the references to the AJAX dll files and adding them again. Next i tried unistalling AJAX and reinstalling it. I wanted to uninstall the .Net framework as well, but I have Windows Vista and cannot
seem to find a way to do that.
I get this error on any project/solution that I have that uses AJAX on my computer, it isn't just the once specific instance.
I'm not sure how to check the dependensies of the dll file, can you elaborate on how to go about doing that?
I am using .Net version 2.0.50727.312. I did not install anything new, though I suppose it's possible Windows update downloaded something if a final version was released.
ok, i'm assuming that you've put the ajaxcontroltoolkit in the bin folder, right? now, open .NET reflector and load that dll. then check the dependencies list of that assembly.
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
If I drill down on System.Web, I can't find anywhere the mentions System.Web.Extensions. I found this on the references section of the AjaxControlToolkit.dll.
Kriswd40
Member
98 Points
341 Posts
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 03:04 PM|LINK
I have been developing a couple AJAX projects over the last month. I installed AJAX and the control toolkit extensions. I am using Visual Studio 2005 Professional Edition and using the built-in web server that Visual Studio uses to test my pages. Everything was working good until yesterday afternoon. Now for some reason, whenever I go to an AJAX enabled page, I get the following error:
First I tried restarting the computer. Then I tried removing the references to the AJAX dll files and adding them again. Next i tried unistalling AJAX and reinstalling it. I wanted to uninstall the .Net framework as well, but I have Windows Vista and cannot seem to find a way to do that.
I get this error on any project/solution that I have that uses AJAX on my computer, it isn't just the once specific instance.
Any ideas?
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 07:05 PM|LINK
hello.
do you have .net 3.5 installed on your pc? can you check the dependencies of the ajaxcontroltoolkit.dll that is inside your bin folder?
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Kriswd40
Member
98 Points
341 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 07:43 PM|LINK
I'm not sure how to check the dependensies of the dll file, can you elaborate on how to go about doing that?
I am using .Net version 2.0.50727.312. I did not install anything new, though I suppose it's possible Windows update downloaded something if a final version was released.
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 08:08 PM|LINK
hello again.
ok, i'm assuming that you've put the ajaxcontroltoolkit in the bin folder, right? now, open .NET reflector and load that dll. then check the dependencies list of that assembly.
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Kriswd40
Member
98 Points
341 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 08:45 PM|LINK
Okay, under the "Depends on" section, I saw a bunch of red X's and the message "Method could not be resolved" under the following classes:
System.Design
System.Web.Extensions
System.Web.Extensions.Design
System.Web.Services
How do I go about fixing this?
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 08:52 PM|LINK
hello.
but which version does it require? for instance, if you select the system.web.extensions, what do you see at the bottom of reflector?
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Kriswd40
Member
98 Points
341 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 09:04 PM|LINK
I see this at the bottom of the page is this:
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 08, 2007 09:24 PM|LINK
hello again,
no, i mean, when you select one of those dlls that are on the references section. for instance, what does it say about system.web.extensions?
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Kriswd40
Member
98 Points
341 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 09, 2007 11:44 AM|LINK
If I drill down on System.Web, I can't find anywhere the mentions System.Web.Extensions. I found this on the references section of the AjaxControlToolkit.dll.
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.
Nov 09, 2007 12:23 PM|LINK
hello.
this seems to confirms that the asp.net ajax extensions are not installed on the server. well, at least not the version you've indicated...
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu