“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.
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.