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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having problem with Writing to xml file?

Status
Not open for further replies.

Sidro

MIS
Joined
Sep 28, 2002
Messages
197
Location
US
Hi,
I have an aspx page that suppose to write to an XML file.
But it cant. Im getting this error. Does anyone know what Im doing wrong? Heres the error message.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path "d:\accounts\JustAnExample\Passwords.xml" is denied.
 
Looks like permissions issue. Go to d:\accounts\JustAnExample\ directory, right click on the folder and select Properties. In the Security tab, give "write" permissions to an account, under which your web site is running.
 
I have the same problem, and I gave myself the permission to write. :s
 
I can only do it by sharing my whole drive. But that's not what I wanted :(
 
Mmm, there should be an edit option :p It worked out after all, just sharing 1 dir now.
 
HI,
When I was first exposed to this problem, I was very frustrated. Usually in a linux or apache machine, you would just check the write permission option and you'll be all set. However, for the Windows .net system, its a little different.
Anyway, after hours of searching; trial and error, I found out the problem was in the web.config file.
You have to give impersonate the ok. Its been awhile since Ive corrected the problem, so, I dont remember exactly how I edit the web.config file. All I suggest is to try modifying Impersonation in the web.config file. Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top