in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

"The database disk image is malformed" exception when working on a shared DB

Last post 08-04-2010 11:59 PM by senglory. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-03-2010 12:18 PM

    "The database disk image is malformed" exception when working on a shared DB

    I have 2 applications on the same machine that use the same DB. My connection string in each of them is the following:

     Data Source=c:\tmp\MYDB.DB;Version=3;New=False;Pooling=True;Synchronous=True;

     

     

    From time to time one of them starts throwing "The database disk image is malformed" exception in attempt to INSERT or UPDATE data from particular table. The other one works fine meanwhile. If to run SQLadmin, it won't show any issues with that particulad DB - no matter  if you run it simultaneously with these 2 apps or as a standalone app. My question is what the issue is and how to fix it? Disk is error-free, that's for sure.  

     

  • 08-04-2010 6:45 PM In reply to

    Re: "The database disk image is malformed" exception when working on a shared DB

    Do you have an anti-virus software program running on the machine?  Frequent insert/updates outside of a transaction, or frequent opening/closing of the database can give anti-virus programs fits, and affect the database.

  • 08-04-2010 7:22 PM In reply to

    Re: "The database disk image is malformed" exception when working on a shared DB

    No, there's no anti-virus at all.

  • 08-04-2010 7:30 PM In reply to

    Re: "The database disk image is malformed" exception when working on a shared DB

    Try setting Journal Mode=Persist in your connection string, and see if that makes any difference.

  • 08-04-2010 11:59 PM In reply to

    Re: "The database disk image is malformed" exception when working on a shared DB

    Tried to use it in both applications for simultaneous access, but no luck. Still get the same error.

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems