Output SQLite Database

Any questions related to version 2 or version 3 should be ask here. / Toutes les questions sur la version 2 ou la version 3 devraient être demandées ici.
gresh
The Passion One / Le Passionné
Posts: 202
Joined: Mon Aug 22, 2011 9:27 am
Contact:

Re: Output SQLite Database

Post by gresh »

J'ai essayé et ça ne marche pas. Je vais lui demander de te contacter.
Showtime Hockey
The Passion One / Le Passionné
Posts: 189
Joined: Fri Sep 16, 2016 3:16 pm
Location: Quebec, QC.
Contact:

Re: Output SQLite Database

Post by Showtime Hockey »

Bon, en fait Gresh a tout essayer et rien ne fonctionne pourtant tout semble correct.

Voici le message d'erreur à partir du tout début:

''Exception Type

System.I.O.I.OException

Message - Source

Le processus ne peut pas accéder au fichier 'C\STHSv3\System.Data.SQLite.dll', car il est en cours d'utilisation par un autre processus. - mscorlib

Stack Trace

à System.I.O._Error.WinIOError(Int32 errorCode, String maybeFullPath)
à System.I.O.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rughts, Boolean useRights, FileShare share, Int32 buffer Size, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
à System.I.O.FileStream..(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
à System.I.O.FileStream..ctor(String path, FileMode mode)
à SimonTHockeySimulator.OutputSQLite.( edoMeliF , gnirtS)
à SimonTHockeySimulator.OutputSQLite.ExtractSQLiteDLL() ''

Puis, une fois que l'ont clique sur OK:

''Could not load file or assembly 'System.Data.SQLIte'. The STHS will extract the file. Please close the STHS and reopen to be able to Output the SQLite Database.''

Donc, on a tout simplement refait un dossier STHS et changer les liens dans le output options. Nous avons également télécharger le lien suivant: http://system.data.sqlite.org/downloads ... .103.0.zip puis nous avons suivis tes intructions. Nous avons aussi télécharger le Net Framework 4.6.1 puis activé les options Internet IIS dans les fonctionnalités de Windows et voici le nouveau message d'erreur:

''Could not load file or assembly 'System.Data.SQLite'. The STHS will extract the file. Please close the STHS and reopen to be able to Output the SQLite Database. ''

Maintenant 2 heures de temps perdu a essayé de trouver le problème, on lache prise. Nous avons besoin de ton aide.

J'ai la version 3.0.8 du simulateur. Rien ne marche lorsque j'essaie le output avec l'option SQ Database. Pourtant, tout fonctionne avec l'option HTML seulement.
Image
Showtime Hockey
The Passion One / Le Passionné
Posts: 189
Joined: Fri Sep 16, 2016 3:16 pm
Location: Quebec, QC.
Contact:

Re: Output SQLite Database

Post by Showtime Hockey »

Je t'ai envoyé mon fichier Simon.

Merci
Image
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14756
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: Output SQLite Database

Post by SimonT »

Je t'ai envoyé un courriel avec de l'information.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
CBSHL
The Accomplished One / L'Accompli
Posts: 62
Joined: Sun Jun 19, 2011 10:44 pm

Re: Output SQLite Database

Post by CBSHL »

Ya un fix qui fonctionne pour ça?
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14756
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: Output SQLite Database

Post by SimonT »

Ce subjet date qu'un an... C'est quoi problème exactement CBSHL?
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
CBSHL
The Accomplished One / L'Accompli
Posts: 62
Joined: Sun Jun 19, 2011 10:44 pm

Re: Output SQLite Database

Post by CBSHL »

Quand mon collegue tente de faire un output il obtient 2 messages d'erreurs.

Le premier:
Could not load file or assembly "System.Data.SQLite". The STHS will extract the file. Please close the STHS and reopen to be able to Output the SQLite Database
Et le 2e
Image
Screenshot du 2e problème

On a essayé plusieurs choses mais le probleme revient toujours. voici ce qu'on a testé:
mettre le .dll dans Input et on a fait Process Database. aucun résultat
Faire la commande Create SQLite News Database. Aucun résultat
SimonT wrote: Fri Sep 23, 2016 10:39 pm Voici un lien a téléchargé : http://system.data.sqlite.org/downloads ... .103.0.zip
Dans le fichier zip, copie le fichier System.Data.SQLite.dll dans le même répertoire que le STHS en écrasant le fichier existant (Le STHS doit être fermé pour que ça fonctionne). Ensuite, ouvre le STHS et essaye l'output de la base de données à nouveau.
On a essayé ca aussi, ca a enlevé le premier message mais le 2e revient.

On a envoyé le fichier .sth a un ami qui a le simulateur et lui il output sans problème.
Des idées?
CBSHL
The Accomplished One / L'Accompli
Posts: 62
Joined: Sun Jun 19, 2011 10:44 pm

Re: Output SQLite Database

Post by CBSHL »

Pour ajouter, je lui ai demandé de redemarrer son ordinateur pour etre sur qu'il n'y avait pas un 2e STHS ouvert en background ou qqc qui utiliserait le fichier vu que ca dit "is being used by another process" mais ca a rien changé...
JimToupet
STHS Dynamic Website Contributor
Posts: 363
Joined: Wed Jul 02, 2014 10:55 am

Re: Output SQLite Database

Post by JimToupet »

Test en désactivant l'antivirus pour voir.
CBSHL
The Accomplished One / L'Accompli
Posts: 62
Joined: Sun Jun 19, 2011 10:44 pm

Re: Output SQLite Database

Post by CBSHL »

Ça n'a pas fonctionné malheureusement
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14756
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: Output SQLite Database

Post by SimonT »

J'ai déjà vu des ordinateurs configuré très drôlement qui avait besoin d'un DDL très spécifique. Voici un courriel qu'un autre usager m'a envoyé.
My friend organized the tests with the DLL that you suggested and also did other tests.

We found situations where SQLite worked and others where it did not work. The results are in the table below. My operating system is Windows 7 64-bit.

The table is split into two parts. In the first part are the tests with DLL from SQLite Binary Bundle. The second part used a different configuration suggested in System.Data.SQLite website.
About that second part: when the processors architecture of the development machine is different from the processors architecture of the client machine, it is recommended to use the "native library feature pre-loading". So compiled versions with plataform target "any cpu" worked.

About the "nativey pre-loading library", there is an explanation of how to do this on website http://system.data.sqlite.org/index.htm ... loads.wiki.

I hope I have explained you everything as he explained to me. LOL.

Thanks.



DLL / VS Target Framework/ VS Plataform Target / Result
http://system.data.sqlite.org/downloads ... 0.99.0.zip 2 x86 FAIL
http://system.data.sqlite.org/downloads ... 0.99.0.zip 3.5 x86 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 2 x86 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x86 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 2 x64 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 2 Any Cpu FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x64 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 Any Cpu FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 2 x86 Works
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x86 Works


Binary

DLL / VS Target Framework/ VS Plataform Target / Result
http://system.data.sqlite.org/downloads ... .103.0.zip 2 x86 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x86 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 2 x64 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x64 FAIL
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x86 Works
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 x64 Works
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 Any CPU Works
http://system.data.sqlite.org/downloads ... .103.0.zip 3.5 Any CPU Works
Please note the STHS is completed on .Net Framework 2.0 on X86. I have highlight 2 download DDL that might work for you.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
CBSHL
The Accomplished One / L'Accompli
Posts: 62
Joined: Sun Jun 19, 2011 10:44 pm

Re: Output SQLite Database

Post by CBSHL »

I'll have our commish download that and see if it works. I'll keep you updated
Post Reply