Re: Access to Path is Denied.
- From: "Mr. Arnold" <MR. Arnold@xxxxxxxxxx>
- Date: Wed, 6 Jun 2007 23:34:35 -0400
"Tim Peer" <Peert@xxxxxxxxxxx> wrote in message news:uGEVJrHqHHA.4196@xxxxxxxxxxxxxxxxxxxxxxx
Thank you Aneesh and Mr. Arnold,
I am attempting to create the file on a disk on the local system. The username of the account running the C# program should have adequate privs since it is in the administrators group. I have altered permissions on the login (domain) user account, ASPNET local user account and no luck. It was mentioned I might have an open stream on the file, I don't think this is the case since I am creating a new file and SYSTEM.IO activity is limited to this single method.
I believe the machine/ASPNET account only comes into play for the ASP.NET Worker Process and what permissions it has, such as permissions an ASP.NET solution would have in a browser session to work with directory/files.
System.IO.FileInfo finfo = new System.IO.FileInfo(ffile);
if (!finfo.Exists) finfo.Create();
Do you know within which account the .NET 2.0 application executes. From what I can see, my account being in the administrators group should not raise this violation, but should the application execute from an account proxy...
Also, I read that the USERS group is used by .NET application when such errors occur but do not have a USERS group in Small Business Server 2003.
Thanks again for your help with this.
Maybe, the link will help you pin point what is happening.
http://www.codeproject.com/dotnet/UB_CAS_NET.asp
.
- Follow-Ups:
- Re: Access to Path is Denied.
- From: Aneesh Pulukkul[MCSD.Net]
- Re: Access to Path is Denied.
- References:
- Access to Path is Denied.
- From: Tim Peer
- Re: Access to Path is Denied.
- From: Tim Peer
- Access to Path is Denied.
- Prev by Date: Re: a generic printing scheme?(printing many docs with one set of controls?)
- Next by Date: RE: Form designer looses controls
- Previous by thread: Re: Access to Path is Denied.
- Next by thread: Re: Access to Path is Denied.
- Index(es):
Relevant Pages
|