Answered by:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect.

Question
-
User1556928295 posted
Ok strange stuff seems to be happening. I was working on a project and then all of a sudden my monitor goes crazy and I get the Blue Screen of Death. I'm running Windows 7 with Visual Studios 2008 Version 9.0.30729.1 SP I have the Ajax toolkit version 3.5.7.123 referenced. Everything was working fine and the weird stuff happened and now I'm getting;
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect.
WTH
Friday, June 12, 2015 2:43 PM
Answers
-
User-484054684 posted
Have you tried deleting the contents inside of "Temporary ASP.NET files" folder - That way, the required (temporary) files (if corrupted in this folder) will be recreated when you access the app first time.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, June 15, 2015 11:21 AM
All replies
-
User-484054684 posted
Try to remove and re-add the Ajax dll.
You may refer this article different ways of installing AjaxcontrolToolKit http://www.codingfusion.com/Post/3-Different-ways-to-add-AjaxControlToolkit-in-Asp
Friday, June 12, 2015 2:46 PM -
User1556928295 posted
I did and reinstalled it and I still get the error.
Friday, June 12, 2015 2:56 PM -
User1556928295 posted
I unloaded and reloaded it and I still get the error.
Friday, June 12, 2015 3:11 PM -
User-484054684 posted
Could you try to remove the "Temporary ASP.NET Files"?
To do this,
Stop IIS and close VisualStudio, remove the temporary asp.net files, start IIS again.
Friday, June 12, 2015 3:42 PM -
User1556928295 posted
This is on my local machine. Why would I even need to mess with IIS?
Friday, June 12, 2015 3:47 PM -
User-484054684 posted
OK, I thought you have hosted the website in your local IIS.
However, Temporary ASP.NET files will be generated when the application is accessed first time and is used by dynamic ASP.NET compilation process. So, if there is some issue in that process, you could delete these files so that the process will regenerate them again freshly when the web site is accessed for the first time.
Remember, don't delete the 'Temporary ASP.NET Files' folder but delete the "contents" (files and sub folders) of it. As this folder is common for all the websites in your local machine, you might require to stop IIS before deleting these files (otherwise, you may not be able to delete some of the files) and start IIS once done.
Friday, June 12, 2015 6:21 PM -
User1644755831 posted
Hello liefie2000,
According to this post upgrading to the latest version should resolve the issue. You can find the latest version of AjaxToolKit Here. : https://ajaxcontroltoolkit.codeplex.com/ . They have introduced a binary installer for the ajax tool kit try to use it. If it works you might need to change some coding related to ToolkitScriptManager. Please see: ToolkitScriptManager Removed in v15.1, Use ScriptManager
Here is a similar thread which addresses your problem. http://stackoverflow.com/questions/8269386/could-not-load-file-or-assembly-the-parameter-is-incorrect
Hope this helps.
With Regards,
Krunal Parekh
Sunday, June 14, 2015 10:56 PM -
User1556928295 posted
I am running VS 2008 and the recent version does not help me with my issue. I am trying to reinstall the AjaxToolkit for 2008 and so far no luck. It almost seems like I might have a corrupt file. Like during the period of the blue screen of death it was updating to a Ajax system file of VS 2008 system file and then got drop mid-update. Because VS 2008 acts strange when trying to go between form Design and Form Source. It like hangs for a long time.
Monday, June 15, 2015 10:41 AM -
User-484054684 posted
Have you tried deleting the contents inside of "Temporary ASP.NET files" folder - That way, the required (temporary) files (if corrupted in this folder) will be recreated when you access the app first time.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, June 15, 2015 11:21 AM -
User1556928295 posted
Are you kidding me?!? That did it. Way to go Siva. It always goes to show, sometimes its the little things that make a biggest impact.
Monday, June 15, 2015 11:33 AM