locked
Could not load file or assembly 'System.Web.Extensions' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded RRS feed

  • Question

  • User-1227036001 posted

    Dears,
    I am getting this below error, the website is in asp.net 2.0 version and in web.config it is “<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">”

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

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions' could not be loaded.

    Wednesday, January 14, 2015 3:42 AM

Answers

  • User1577371250 posted

    Hi,

    Please do the following.

    • Open the Solution Explorer of your Project and Expand the References.
    • See whether you have the System.Web.Extensions Reference.
    • If you don't have it, Please do this
    • Right Click on the References and Scroll Down to the System.Web.Extensions and select OK
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, January 14, 2015 8:30 AM