-
June 30th, 2015, 08:40 AM
#1
LocalDB deploy issue
Hello
Working on a VB.NET project with SQL LocalDB I'm having the next problem:
When deployng on a client machine (Windows 7), my application tries to Create a DB on disk but it got ERROR 5 (Access denied) ... (It seems SQLLocalDB does not have write permissions on disk)
It suppose I have not chance to manipulate that machine. I just send a SETUP that contains the program and SQLLocalDB as prerequisite.
How can I solve this issue from code since I cannot access to client machine?
Thanks.
-
July 5th, 2015, 07:20 PM
#2
Re: LocalDB deploy issue
Where are you trying to create the db? Remember program files is protected on Vista and later OSs so you will not have write access if you try to put your db there.
Always use [code][/code] tags when posting code.
-
July 7th, 2015, 10:24 AM
#3
Re: LocalDB deploy issue
Originally Posted by DataMiser
Where are you trying to create the db? Remember program files is protected on Vista and later OSs so you will not have write access if you try to put your db there.
Yes, I was trying to Create DB inside of Program Files.
Thanks !!!
-
July 7th, 2015, 01:39 PM
#4
Re: LocalDB deploy issue
You're going to have to have permission to make changes to the file / folder structure, as DM mentioned. Not sure if you can do it programmatically. Even if you could, I'd advise against it.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|