Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPNET Write Permission in XP Pro

Status
Not open for further replies.

DH

Programmer
Dec 8, 2000
168
Hello,

For some reason I cannot set the write permission to a directory in my web application running on localhost. The operating system is XP Pro.

I am receiving the following error:

Error in Creating file. Error is System.UnauthorizedAccessException: Access to the path "c:\inetpub\ is denied

Here are the steps I have take to try and set the write permission:

1.) I navigate to c:\inetpub\ using file explorer
2.) Right click the Upload folder
3.) Choose Properties
4.) Choose Web Sharing Tab
5.) Check Share this folder radio button
6.) What should be in the Alias textbox? the folder name?
7.) Check Write Access Permissions checkbox
8.) Click Apply
9.) Click OK

Not sure what is happening here??? Can someone provide additional information or more detailed instructions...

Thanks,

DH
 
Make sure that IIS has it setup as and Application button even with Application Name on the Virtual Directory tab. Does it say Remove or Create - if it says Create click that button.

Just an idea...

Hope everyone is having a great day!

Thanks - Jennifer
 
You should not have to share it.
In the properties select the security tab
If you do not see your ASP.NET machine account add it.
Click add and in the box type aspnet and click check names.
It should fill the box in with machine-name\ASPNET
click OK.
Give the account write permissions.
Marty
 
My bad never thought about it.
Go to the control panel.
Folder Options.
View tab.
Go to the botttom of the advanced settings
Uncheck the use simple file sharing (recommended).
OK.
Marty
 
cappmgr,

Thanks! that fixed everthing and now the Security tab is now visible.

Here are the complete set of steps for anyone else that needs to assign write permissions for the ASPNET account using Windows XP Pro:

XP Pro steps:

1.) The hard drive should be formatted for NTFS.
2.) Open Windows Explorer, go to 'Tools' tab -> Folder Options -> View -> uncheck 'Use Simple File Sharing'
3.) Navigate to c:\inetpub\ using file explorer
- assumes you already created a new folder titled 'Upload' that you wish to write to
4.) Right click the Upload folder
5.) Choose Properties
6.) Choose Security Tab
7.) Look for the ASPNET account
- if you don't see it click Add and type ASPNET then click Check Names
8.) Check Write Access Permissions checkbox for the ASPNET account
9.) Click Apply
10.) Click OK

I should also mention at if you are impersonating that is impersonation=true in the web.config file then you also need to assign write permissions for the Internet Guest Account.


Thanks again!

DH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top