Question: Any thoughts on what might be causing this exception?

I have a webservice proj, when i load the link i get

> 
> Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.  
> 
>  Exception Details: System.BadImageFormatException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.
> 
> 
> 

Inner exceptions:

> 
> [BadImageFormatException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
> 
> 
> [ConfigurationErrorsException: Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
> 
> 
> [HttpException (0x80004005): Could not load file or assembly 'Interop.DIB' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
> 
> 
> 

Version Information:  

Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Answer: 
Ok the answer is Got to Start->Run->type inetmgr and on the left application pools, select DefaultAppPool and the virtual directory name of the app and for both make sure to enable 32 -bit applications to true, am using IIS7.0 and windows 7 64-bit.
![enter image description here](https://i.stack.imgur.com/WluyX.jpg)
This work for me, if not work for you, don't vote down. It's impolite

> 
> So it works if I change in the c# project from Any CPU to x86(all dlls
>  are compiled in WIN32) from Properties -> Build -> Platform Target. I
>  work on a 64-bit Win7 pc and aparently if I use Any CPU as target it
>  does't find the wrapper dll.
> 
> 
> 

```
https://www.codeproject.com/Questions/358717/Could-not-load-file-or-assembly-dll-file

```