CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2013
    Posts
    19

    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.

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    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.

  3. #3
    Join Date
    Apr 2013
    Posts
    19

    Re: LocalDB deploy issue

    Quote Originally Posted by DataMiser View Post
    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 !!!

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,271

    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.
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

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
  •  





Click Here to Expand Forum to Full Width

Featured