Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
RSS
I have been building an ASP.NET 2.0 app now for quite a while and had everything working quite well untill my computer froze when running the app from the debugger.
Now i get the following error message
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have reinstalled Ajax 1.0, reinstalled the toolkit vsi, copied the web config from a working ajax site.
Not sure what else to do, its strange that it suddenly happened!
Thanks for the post. I'll give that a try. I'm not sure if uninstalling and reinstalling the .net framework will help though as for other web projects they still run. Its just the one I was trying to build at the time my computer locked up.
Still, I'll give it a try and let you know how I go.
I have replaced the toolkit dll in the bin directory of the project.
I haven't created a NEW ajax project, but do have an existing project that does work. I have also replaced the web.config file in the problem project with one from the ajax sample website and it still doesnt work.
I have tried to uninstall the framework and also uninstall VS.NET as well but have run into problems with uninstalling VS.NET on Vista (PS Repair doesnt work either). I will keep trying to uninstall VS.NET and then start again.
Upgrading the Toolkit should be straightforward, a simple binary replacement:
http://ajax.asp.net/ajaxtoolkit/Walkthrough/Setup.aspx. You should not need to uninstall and reinstall the framework/VS.NET. Could you use windiff to see what is the difference between the project that works and the one that is giving you this error?
Kirti Deshpande
Program Manager, Silverlight and ASP.NET AJAX
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
I had this same issue and was able to resolve it by simply deleting the related files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
I have tried for several hours to resolve this on my machine.
What resolved it was to delete all files from the following folder:-
C;\Users\{Your User Name}\AppDate\Local\Microsoft\Temp\Temporary ASP.NET Files\
Note: You will need to change your Folder Options - in control panel on Vista, to view Hidden and Operating System Files, otherwise you will not find this folder.
Delete all files in the folder and re-run your app. Good luck.
I had this same issue and was able to resolve it by simply deleting the related files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
Don
sorry, i talk about this :p
when I was new I was helped, now I have more knowledge, why not help others?
mark as answer.. don't forget it
emmersive
Member
77 Points
26 Posts
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is...
Jun 24, 2007 12:07 PM|LINK
Hi All,
Got a bit of a strange one.
I have been building an ASP.NET 2.0 app now for quite a while and had everything working quite well untill my computer froze when running the app from the debugger.
Now i get the following error message
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have reinstalled Ajax 1.0, reinstalled the toolkit vsi, copied the web config from a working ajax site.
Not sure what else to do, its strange that it suddenly happened!
Any suggestions?
Thanks
Glen
adefwebserve...
Contributor
5912 Points
1207 Posts
MVP
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 24, 2007 12:46 PM|LINK
see:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=602645&SiteID=1
Open Light Group
LightSwitchHelpWebsite.com | ADefWebserver.com
emmersive
Member
77 Points
26 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 25, 2007 12:57 AM|LINK
Hi adefwebserver,
Thanks for the post. I'll give that a try. I'm not sure if uninstalling and reinstalling the .net framework will help though as for other web projects they still run. Its just the one I was trying to build at the time my computer locked up.
Still, I'll give it a try and let you know how I go.
Thanks again,
Glen
kirtid
Contributor
2610 Points
658 Posts
Microsoft
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 25, 2007 05:12 AM|LINK
Did you update the Toolkit dll in your website's bin directory? Does creating a fresh new site and adding some Toolkit extender work?
Program Manager, Silverlight and ASP.NET AJAX
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
emmersive
Member
77 Points
26 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 26, 2007 06:49 AM|LINK
Hi, Thanks for the response.
I have replaced the toolkit dll in the bin directory of the project.
I haven't created a NEW ajax project, but do have an existing project that does work. I have also replaced the web.config file in the problem project with one from the ajax sample website and it still doesnt work.
I have tried to uninstall the framework and also uninstall VS.NET as well but have run into problems with uninstalling VS.NET on Vista (PS Repair doesnt work either). I will keep trying to uninstall VS.NET and then start again.
Any other suggestions are welcomed though!
Thanks again,
Glen
kirtid
Contributor
2610 Points
658 Posts
Microsoft
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 26, 2007 07:07 AM|LINK
Upgrading the Toolkit should be straightforward, a simple binary replacement: http://ajax.asp.net/ajaxtoolkit/Walkthrough/Setup.aspx. You should not need to uninstall and reinstall the framework/VS.NET. Could you use windiff to see what is the difference between the project that works and the one that is giving you this error?
Program Manager, Silverlight and ASP.NET AJAX
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
dlee337
Member
77 Points
16 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jul 28, 2007 12:47 AM|LINK
I had this same issue and was able to resolve it by simply deleting the related files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
Don
AgeGould
Member
2 Points
14 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Apr 08, 2008 07:53 AM|LINK
I have tried for several hours to resolve this on my machine.
What resolved it was to delete all files from the following folder:-
C;\Users\{Your User Name}\AppDate\Local\Microsoft\Temp\Temporary ASP.NET Files\
Note: You will need to change your Folder Options - in control panel on Vista, to view Hidden and Operating System Files, otherwise you will not find this folder.
Delete all files in the folder and re-run your app. Good luck.
maralbust
Member
88 Points
76 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 09, 2009 07:30 PM|LINK
this work, you have to erase all files, and those who can't be erased... do it manually, file by file
mark as answer.. don't forget it
maralbust
Member
88 Points
76 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The paramete...
Jun 09, 2009 07:32 PM|LINK
sorry, i talk about this :p
mark as answer.. don't forget it