Access and winform

P

perceval

Hello,

I have in my application a folder "/data" where I store my .mdb.

I create a connection in my winforms (app.config)

The problem it is that when I déploy my application, the program turns
over in my developpement folder to seek the .mdb and not in
"\programFiles\myApplication\data\..."

Help
 
H

Herfried K. Wagner [MVP]

* perceval said:
I have in my application a folder "/data" where I store my .mdb.

I create a connection in my winforms (app.config)

The problem it is that when I déploy my application, the program turns
over in my developpement folder to seek the .mdb and not in
"\programFiles\myApplication\data\..."

Post your "App.config".
 
P

perceval

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- Les paramètres de l'application utilisateur et de propriété
configurée se placent ici.-->
<!-- Exemple : <add key="settingName" value="settingValue"/> -->
<add key="OleDbConnection1.ConnectionString" value="Jet OLEDB:Global
Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking
Mode=1;Jet OLEDB:Database Password=;Data
Source=&quot;C:\develop\sgSoftware\Alpha...Nimaux\data\alphabet.mdb&quot;;Password=;Jet
OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider=&quot;Microsoft.Jet.OLEDB.4.0&quot;;Jet
OLEDB:System database=;Jet OLEDB:SFP=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:New Database Password=;Jet
OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User
ID=Admin;Jet OLEDB:Encrypt Database=False" />
</appSettings>
</configuration>


and it's my folder developpement... i will deploy my application in
C:\Program Files\sgSoftware\Alpha...Nimaux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top