There are upcoming maintenance events which may impact our services. Learn more

Could not load file or assembly 'App_Code' or one of its dependencies Print

  • 2

To resolve this below issue Recompiled your application and depoloy it again

Could not load file or assembly 'App_Code' 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 'App_Code' 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 'App_Code' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Was this answer helpful?

« Back

Download iOS & Android app

Let's be Appy😉 You can now manage your hosting and domains on the move. Yes! You may download Motherhost Application from Apple Store or Google Play store. You can Register, Renew and Host your domain name from anywhere, any time.

motherhost app screen