BadImageFormatException

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.