folder security

N

Nikhil Patel

Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation exception
when It tries to write a word document to a special folder I created for
storing word documents. It says ASPNET account does not have write access to
the folder. How can I give the ASPNET account the write access to this
folder?

Thanks.
 
N

Nikhil Patel

Hi Curt,
Thanks for the reply. But I don't have security tab. I am using Windows
XP. I have General, Sharing, Web Sharing and Customize tabs.
 
M

Martin Dechev

Hi,

You can set the security of the folder in Windows Explorer. Right-click it,
choose "Properties" and go to the "Security" tab. Then add the ASPNET user
(or the user with which the worker process executes - see in Task Manager
the column User Name for the w3wp.exe or aspnet_wp.exe process depending on
the windows and framework version, or the impersonated user if you use
impersonation) and give it the appropriate rights for the folder.

Hope this helps
Martin
 
N

Nikhil Patel

Hi Nicole,
After disabling simple file sharing I was able to give write access to
ASPNET. Thanks for your help.

-Nikhil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top