Hello,

I am trying to open this file which exists and runs fine on my development machine. But when I deploy to my VPS with IIS8 I get this error:


An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

I copied the same data.db file from my machine to the server which worked for me. Do I need to do anything in IIS8 to recognize this file and let me use it?


Code:
Using conn = New SQLiteConnection("Data Source=" & Server.MapPath("data.db"))
Thanks,
Warren