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

Last post 10-21-2009 5:03 PM by palpacino. 13 replies.

Sort Posts:

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

    06-24-2007, 8:07 AM
    • Member
      77 point Member
    • emmersive
    • Member since 08-29-2005, 3:39 AM
    • Posts 26

    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
     


     

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

    06-24-2007, 8:46 AM
    • Contributor
      5,867 point Contributor
    • adefwebserver
    • Member since 06-07-2003, 12:50 PM
    • Los Angeles, CA
    • Posts 1,185

    SilverlightDesktop.net

    A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
  • Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

    06-24-2007, 8:57 PM
    • Member
      77 point Member
    • emmersive
    • Member since 08-29-2005, 3:39 AM
    • Posts 26

    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
     

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

    06-25-2007, 1:12 AM
    • Contributor
      2,610 point Contributor
    • kirtid
    • Member since 11-18-2006, 12:41 AM
    • Redmond
    • Posts 658
    • AspNetTeam

    Did you update the Toolkit dll in your website's bin directory? Does creating a fresh new site and adding some Toolkit extender work?

    Kirti Deshpande
    Program Manager, Silverlight and ASP.NET AJAX
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

    06-26-2007, 2:49 AM
    • Member
      77 point Member
    • emmersive
    • Member since 08-29-2005, 3:39 AM
    • Posts 26

    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
     

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

    06-26-2007, 3:07 AM
    Answer
    • Contributor
      2,610 point Contributor
    • kirtid
    • Member since 11-18-2006, 12:41 AM
    • Redmond
    • Posts 658
    • AspNetTeam

    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.
  • Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

    07-27-2007, 8:47 PM
    • Member
      77 point Member
    • dlee337
    • Member since 08-16-2003, 12:40 AM
    • Posts 16

     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
     

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

    04-08-2008, 3:53 AM
    • Member
      2 point Member
    • AgeGould
    • Member since 01-04-2008, 5:12 PM
    • Posts 13

    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.

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

    07-10-2008, 7:27 AM
    • Member
      2 point Member
    • santy_123
    • Member since 07-10-2008, 11:25 AM
    • Posts 1

    VIsit at  http://www.ginkostyle.blogspot.com/   for answer this works for me

     

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

    06-09-2009, 3:30 PM
    • Member
      52 point Member
    • maralbust
    • Member since 11-12-2008, 2:55 PM
    • Posts 67

     this work, you have to erase all files, and those who can't be erased... do it manually, file by file

    when I was new I was helped, now I have more knowledge, why not help others?
    mark as answer.. don't forget it
  • Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

    06-09-2009, 3:32 PM
    • Member
      52 point Member
    • maralbust
    • Member since 11-12-2008, 2:55 PM
    • Posts 67

    dlee337:

     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
  • Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

    09-28-2009, 1:38 AM
    • Member
      2 point Member
    • tholden51
    • Member since 09-28-2009, 5:37 AM
    • Posts 1

     Perfect. Thank you.

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

    10-21-2009, 4:48 PM
    • Member
      6 point Member
    • palpacino
    • Member since 09-09-2009, 11:26 PM
    • Posts 5


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

    10-21-2009, 5:03 PM
    • Member
      6 point Member
    • palpacino
    • Member since 09-09-2009, 11:26 PM
    • Posts 5


Page 1 of 1 (14 items)