dcsimg
Results 1 to 2 of 2

Thread: Cannot open SQLite file on server - help

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question Cannot open SQLite file on server - help

    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

  2. #2
    Frenzied Member
    Join Date
    May 2014
    Location
    Central Europe
    Posts
    1,285

    Re: Cannot open SQLite file on server - help

    google seems to know your problem:
    https://www.google.at/search?q=SQLit...ormatException

    looks like a 32/64 bit issue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width