Message d'erreur après l’installation de mon app

yacine_3123 Messages postés 10 Date d'inscription mardi 7 août 2018 Statut Membre Dernière intervention 20 août 2018 - 20 août 2018 à 14:29
Whismeril Messages postés 18404 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 30 mai 2023 - 22 août 2018 à 18:04
Bonjour tout le monde,

j'ai créée une application en se basant sur SQLITE et EXCEL. l'application marche très bien quand je la lance depuis Visual Basic, pourtant quand je l ai installer en utilisant inno(j'ai ajouter tous les fichier durant l instalation) elle me donne un message d'erreur que je ne comprends pas. voici le message:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
                            • Exception Text **************

System.Data.SQLite.SQLiteException (0x80004005): unable to open database file
at System.Data.SQLite.SQLite3.Open(String strFilename, String vfsName, SQLiteConnectionFlags connectionFlags, SQLiteOpenFlagsEnum openFlags, Int32 maxPoolSize, Boolean usePool)
at System.Data.SQLite.SQLiteConnection.Open()
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at bibliomine_bis.connexion.connexion_Load(Object sender, EventArgs e) in C:\Users\BRAIN\documents\visual studio 2013\Projects\bibliomine_bis\bibliomine_bis\Forms\connexion.vb:line 22
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
                            • Loaded Assemblies **************

mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
bibliomine_bis
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/bib/bibliomine_bis.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.106.0
Win32 Version: 1.0.106.0
CodeBase: file:///C:/Program%20Files%20(x86)/bib/System.Data.SQLite.DLL
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
                            • JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Mercii de votre temps

2 réponses

Whismeril Messages postés 18404 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 30 mai 2023 623
20 août 2018 à 15:38
Bonjour
Est ce qu’il y a une base de données à ouvrir?
Est ce que ton installation inclus Sqlite3.dll?
Si oui est la bonne version (32 bits, 64 bits)? Dans le doute, compile en 32 bits, avec Sqlite3.dll 32 bits.
1
yacine_3123 Messages postés 10 Date d'inscription mardi 7 août 2018 Statut Membre Dernière intervention 20 août 2018
20 août 2018 à 16:26
Rebonjour,

oui il y a une base de données et elle interagis avec l application en mode lecture seulement; quand je demande une modification dans la base de données j obtient le message suivant: attempt to write a readonly database!!!!
concernant le sqlite j'ai ajouté tous les fichiers existant dans le dossier Debug.

Merci de votre interaction Whismeril
0
Whismeril Messages postés 18404 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 30 mai 2023 623
22 août 2018 à 18:04
Ça te fais donc 2 messages d'erreur?

concernant le sqlite j'ai ajouté tous les fichiers existant dans le dossier Debug.

c'est vachement parlant....
Y'a 36 wrappeurs sqlite pour .Net, chacun ayant ses subtilités, de plus il y sqlite 32 bits et 64 bits (je te l'ai déjà écrit, il me semble), si tu as compilé en Any CPU, sur un PC 64 bits et que tu déploies sur un PC 32 bits, ça ne peut pas marcher.

Bref, aux questions précises que j'ai posées, peux tu apporter une réponse précise?
0