PC Review Forums Newsgroups Windows Vista Windows Vista General Discussion Access to the path 'C:\Program Files (x86)\...

Reply

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

 
Thread Tools Rate Thread
Old 26-01-2007, 04:01 PM   #1
=?Utf-8?B?Z2xlbm5fOTcxMjQ=?=
Guest
 
Posts: n/a
Default Access to the path 'C:\Program Files (x86)\...


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)
  Reply With Quote
Old 26-01-2007, 05:21 PM   #2
Chad Harris
Guest
 
Posts: n/a
Default Re: Access to the path 'C:\Program Files (x86)\...

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)



  Reply With Quote
Old 29-01-2007, 08:49 PM   #3
=?Utf-8?B?Z2xlbm5fOTcxMjQ=?=
Guest
 
Posts: n/a
Default Re: Access to the path 'C:\Program Files (x86)\...

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)

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off