PDA

View Full Version : asp.net permissions issue


Kram
09-21-2005, 08:23 AM
Im developing a small app to write data from a datagrid to an XML file, and im getting this message when I try to write to the file:

Access to the path "c:\inetpub\wwwroot\MyAppName\Data\Debts.xml" is denied.

So I figure I have to allow for IIS to have write access to this dir, but the issue is that when I right click on the dir there is no security tab in the properties. So how do I fix the issue?

Cheers Guys

smartweb
09-21-2005, 09:15 AM
What is your operating system?

You can use impersonation and you should be able to write to this XML file. Read how to use impersonation below:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp

Kram
09-21-2005, 05:50 PM
thanks man, Ill give that a read and let you know