Santhosh Subramaniam

Santhosh Subramaniam

  • NA
  • 226
  • 103.3k

Could not load file or assembly 'xxx' or one of its dependen

May 10 2017 3:12 AM
Hi Frnds,
 
Project A (Class Library) and Project B (Class Library) is included in project C(Web project), all 3 projects are runing fine in local environment, I am trying to host in IIS 7.5 and trying to access, getting error like
 
Server Error in '/project C' Application.
Could not load file or assembly 'Project B' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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 'Project B' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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 'Project B' could not be loaded.
 
Thanks in advance,
 
 

Answers (1)