I have the following lines of code:
IDbConnection dbConn = dbFactory.OpenDbConnection();
IDbCommand dbCmd = dbConn.CreateCommand();
I am getting the following exception:
BadImageFormatException An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
I thought this might have to do with 32 bit and 64 bit applications, so I tried both versions of the dll. In addition, I also enabled 32 bit applications through IIS. Can someone tell me why I may be getting this error?