• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

.NET Virtual store in Windows 7

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    .NET Virtual store in Windows 7

    Testing out VB.net prog in Windows 7 that works ok in Vista and earlier.

    The users can set various options and save them for next time. In pre Vista this goes in the program directory in program files, in Vista it is transparently put into the user's virtual store.

    However, in Windows 7 trying to save the file gives an access denied error. The virtual store exists and other apps appear to be using it ok. Having to run the program as admin, if that would help anyway, is not an option. Anyone else had a problem with this?

    Cheers.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

    #2
    There's a forum here:
    http://www.vbforums.com/showthread.php?p=3703225

    which has an answer
    Coffee's for closers

    Comment


      #3
      oooo spooky.
      ‎"See, you think I give a tulip. Wrong. In fact, while you talk, I'm thinking; How can I give less of a tulip? That's why I look interested."

      Comment


        #4
        Isn't Google fast these days?
        bloggoth

        If everything isn't black and white, I say, 'Why the hell not?'
        John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

        Comment


          #5
          Does it delete the file before writing it?

          I've never totally understood what the virtual store allows, but it does have odd rules like that and sometimes does not work how you expect.

          But yes you should really write to ProgramData instead.
          Will work inside IR35. Or for food.

          Comment


            #6
            Just concluded that before reading this but cheers anyway Vectraman. Set assembly information to set default path.
            bloggoth

            If everything isn't black and white, I say, 'Why the hell not?'
            John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

            Comment

            Working...
            X