connection string in app.exe.config

karper15

Estimable
Jan 17, 2015
2
0
4,510
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
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?