connection string in app.exe.config

karper15

Estimable
Jan 17, 2015
2
0
4,510
0
Hello

I have a Visual Basic 2010 programm that uses a .mdb Access database.
In my programm I have the literals:

con.ConnectionString = "PROVIDER=Microsoft.JET.OLEDB.4.0;"Data Source=c:\test.mdb"

This words fine in my IDE.

But when I compile it, ,and with that there is an "app.exe.config" created, the programm keeps looking at c:\test.mdb, whatever I change in "data asource =" in the app.exe.config.

How can I realize that the programms looks at the app.exe.config?

Thanks!

Frans


 

karper15

Estimable
Jan 17, 2015
2
0
4,510
0
This brings no solution...

Now I get "Configuration Manager is not a member of Configuration"

When I try to 'add a refererence' the Configuration Manager is nog listed in the choices...

So I have downloaded the System.Configuration.dll and copied it into the windows\system32 directory. (and also into Visual studio)

Still not listed...


Who helps me to solve my problem?




 
Thread starter Similar threads Forum Replies Date
E Apps General Discussion 5
D Apps General Discussion 3
C Apps General Discussion 1
P Apps General Discussion 1
D Apps General Discussion 7
V Apps General Discussion 3
G Apps General Discussion 1
T Apps General Discussion 12
T Apps General Discussion 1
A Apps General Discussion 6
A Apps General Discussion 10
D Apps General Discussion 3
S Apps General Discussion 1
Q Apps General Discussion 1
L Apps General Discussion 2
E Apps General Discussion 5
D Apps General Discussion 6
Iver Hicarte Apps General Discussion 4
D Apps General Discussion 3
O Apps General Discussion 1

ASK THE COMMUNITY

TRENDING THREADS