Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Hi,

Some time in ajax web development you face this error during website building “Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))”.

If this error come then please open this folder “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files” and remove all items in this. Then rebuild your website.

Then your website build without any error.

Thanks

Rana Faisal Munir

18 thoughts on “Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

  1. I’m running Vista and have no “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files” folder, but I did find “C:\Users\DellUser\AppData\Local\Temp\Temporary ASP.NET Files”. Clearing this folders contents corrected my build error.

  2. thanks it worked for me as well..

    windows 7

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

    –need to open the project then go to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

    –delete all files..

    –great thanks alot!!

Leave a comment