Re: Access to Path is Denied.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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

.



Relevant Pages

  • Re: Windows Passwords
    ... "Windows Vista for Dummies" manual. ... I started by creating a test user account. ... The reason I say this is that, when I turned the Guest ...
    (microsoft.public.windows.vista.general)
  • Re: Help Me Understand User Accounts
    ... When you log off and log back in as the limited user you'll be able to ... you'll need to set up a new email account (under the new ... limited user account) the same as you had before, ... Administrator accounts are the default type of account ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows Service Account
    ... you can use the find IIDentity to the user to give folder permissions ... The OP does not need to find which user account is running the Windows ... Local System account has mighty ...
    (microsoft.public.dotnet.general)
  • Trusted connection
    ... Can I log on to SQL Server 2000 being loged on to a computer (local ... user account) which is added to a domain? ... local Administrators group but the ...
    (microsoft.public.sqlserver.security)
  • Re: Logoff / Slow Bootups / Outlook attachements / Outlook Not res
    ... When you logon the problematic user account on the good user's computer, ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)