Click here to Skip to main content
15,883,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to deploy VB.Net application with database as msaccess

1. I created the setup that contains Ms Access db file
2.When i install the setup database goes inside ProgramFiles Directory so that i cannot be updated due to read only problem.

How to divert the connection path to Virtualstore directory when i am updating database
Posted

"Virtualstore"? That's where Windows deposits files which user with insufficeient privileges changed. When a file gets there, it means that the programmer designed his program not correctly!
The ProgramData directory is the correct location.
See also Access denied problem[^]
 
Share this answer
 
Just Add Your Database by changing the extension of the mdb and change exetension when the user run the application first then it will not be a read only formate


Mahesh Ghodke
PlayMate IT Software Services Omerga
 
Share this answer
 
Move your database to "application.startuppath" and replace connection strings.

You can always access it on client machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900