Posts Could not load file or assembly or one of its dependencies
Post
Cancel

Could not load file or assembly or one of its dependencies

“Could not load file or assembly or one of its dependencies”. You come across this error message a lot if you are .net developer.

Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.

could not load file or assembly

Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format

There are two solution’s for this problem

1 – Make sure you are referencing the correct dll and its there.

2 – if the above solution doesn’t work, You need to enable 32 bit application in your IIS application pool. Attached is the screen shot of where you’ll get that configuration.

Application Pool Advance Settings

Application Pool Advance Settings

Enable 32-bit Applications

Enable 32-bit Applications

This post is licensed under CC BY 4.0 by the author.