Access to the path 'C:\Program Files (x86)\...

Discussion in 'Windows Vista General Discussion' started by glenn_97124, Jan 26, 2007.

  1. glenn_97124

    glenn_97124 Guest


    My application is a test app used internally in our organization. While
    testing, I need to make some changes in a couple of XML files in the
    'AppUnderTest' folder but I get this security error.

    Is there a way to workaround this?

    Thanks for the help,

    ************** Exception Text **************
    System.UnauthorizedAccessException: Access to the path 'C:\Program Files
    (x86)\AppUnderTest\Configuration\HardwareLibraryD3D.xml' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
    glenn_97124, Jan 26, 2007
    1. Advertisements

  2. glenn_97124

    Chad Harris Guest


    I would think that you need to right click the target folders, and at the
    security tab grant permission to the user level that is going to make
    changes to those xml files--i.e. do this to the App Under Test folder.

    There are a couple ways but one way:

    Right click folder>open Property>Security
    Tab>Advanced>Owner>Edit>Administrators>check all boxes to gain full

    Chad Harris, Jan 26, 2007
    1. Advertisements

  3. glenn_97124

    glenn_97124 Guest

    I tried this but was unsuccessful. The only way I can workaround this is to
    completely disable UAC.

    Is there another way to do this programmatically i.e., using a manifest
    file, security certificate, etc.?

    Thanks for your response.
    glenn_97124, Jan 29, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.