XML Save Error Access Denied

I try to save a loaded xml file but is getting "access is denied" message. How to solve this please? Please give answer with code. Thank you.

Here my code:
<%
dim objxml,currnode
set objxml = server.CreateObject("Microsoft.XMLDOM")
objxml.async = false
objxml.load(server.MapPath("Simple.xml"))
objxml.save (server.MapPath("Simple.xml"))

%>
limctAsked:
Who is Participating?
 
masirofConnect With a Mentor Commented:
Where server.MapPath("Simple.xml") shows, where your files do reside, you want to save..
For example > C:\Inetpub\wwwroot..

Then from security tab of folder properties set permission write to everybody..
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
limctAuthor Commented:
How to solve "Your web server user needs write permission assigned to the folder where you're trying to save the file." from posted question http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20325587.html?

Thanks
0
 
sybeCommented:
uncheck the "read-only" flag of the existing file
0
 
limctAuthor Commented:
One thing weird is that after I turn on the full control for everyone and run the asp page, the settings return to previous's settings and I get error message again. How to solve this please?
0
 
devicCommented:
you need to change settings for XML file.
0
 
devicCommented:
also, be sure that in Server Settings, you have rights to execute scripts:

IIS --> Default Web Site --> Properties --> Home Directory --> Execute Permmissions: Scripts and Executables
0
 
limctAuthor Commented:
How to get to IIS?
0
 
sybeCommented:
Control Panel -> administrative tools -> Internet Services Manager
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.