locked
AjaxControlToolkit Built by Runtime Newer than The Currently Loaded Runtime RRS feed

  • Question

  • User-2117934185 posted

    I'm working on my first ASP.Net 4 web form and when I publish to my web server, this is what I get:


    Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

    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.BadImageFormatException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.


    I checked and ASP.NET 4.0 is installed on the server. are there any other things I should be checking?



    Tuesday, June 1, 2010 3:45 PM

Answers

  • User1335925338 posted

    Hi JStellato,

    Check whether the AjaxControlToolkit is fit for the .NET version:

    Version 3.0.40412

    April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.
    In the download zip.  Open the two folder of this path …\AjaxControlToolkit\AjaxControlToolkit.Source\Server\AjaxControlToolkit,
    Dll file in binary.NET4 is for .NET 4.0
    Dll file in binary.NET35 is for .NET 3.5

    Best regards,

    Zhi-Qiang Ni

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 8, 2010 5:50 AM

All replies

  • User-2117934185 posted

    bump


    Wednesday, June 2, 2010 8:30 AM
  • User1335925338 posted

    Hi JStellato,

    Check whether the AjaxControlToolkit is fit for the .NET version:

    Version 3.0.40412

    April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.
    In the download zip.  Open the two folder of this path …\AjaxControlToolkit\AjaxControlToolkit.Source\Server\AjaxControlToolkit,
    Dll file in binary.NET4 is for .NET 4.0
    Dll file in binary.NET35 is for .NET 3.5

    Best regards,

    Zhi-Qiang Ni

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 8, 2010 5:50 AM