Have you faced this problem?
BadImageFormatException: Incorrect an with program a load to made was attempt An dependencies. its of one or [Sample.Lib] assembly file not could not be found
If yes, then the problem is that your assembly is compiled as 32 bit but IIS is running on 64 bit .NET or vice versa.
I faced this recently with ASP .NET 4.0. Here’s the KB article that explains what to do
http://support.microsoft.com/kb/894435/en-us
Advertisement