Solved

XML Save Error Access Denied

Posted on 2004-10-15
11
1,507 Views
Last Modified: 2012-06-27
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"))

%>
0
Comment
Question by:limct
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 6

Expert Comment

by:masirof
ID: 12326210
0
 
LVL 6

Expert Comment

by:masirof
ID: 12326214
0
 
LVL 6

Expert Comment

by:masirof
ID: 12326222
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:limct
ID: 12326264
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
 
LVL 6

Accepted Solution

by:
masirof earned 500 total points
ID: 12326271
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
 
LVL 28

Expert Comment

by:sybe
ID: 12326449
uncheck the "read-only" flag of the existing file
0
 

Author Comment

by:limct
ID: 12345874
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
 
LVL 25

Expert Comment

by:devic
ID: 12345887
you need to change settings for XML file.
0
 
LVL 25

Expert Comment

by:devic
ID: 12345904
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
 

Author Comment

by:limct
ID: 12345924
How to get to IIS?
0
 
LVL 28

Expert Comment

by:sybe
ID: 12346070
Control Panel -> administrative tools -> Internet Services Manager
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question