PC Review
Forums
Newsgroups
Windows Vista
Windows Vista General Discussion
Access to the path 'C:\Program Files (x86)\...
Forums
Newsgroups
Windows Vista
Windows Vista General Discussion
Access to the path 'C:\Program Files (x86)\...
![]() |
Access to the path 'C:\Program Files (x86)\... |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
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, Glenn ************** 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) |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Glenn--
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 control>ok>close>reopen>close. CH "glenn_97124" <glenn97124@discussions.microsoft.com> wrote in message news:F4755873-D1AB-4369-BCDF-7CF1A860840C@microsoft.com... > Hi, > > 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, > Glenn > > ************** 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) |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. "Chad Harris" wrote: > Glenn-- > > 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 > control>ok>close>reopen>close. > > CH > > > > > > "glenn_97124" <glenn97124@discussions.microsoft.com> wrote in message > news:F4755873-D1AB-4369-BCDF-7CF1A860840C@microsoft.com... > > Hi, > > > > 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, > > Glenn > > > > ************** 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) > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

