XML Save Error Access Denied

Posted on 2004-10-15
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")) (server.MapPath("Simple.xml"))

Question by:limct
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

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


Accepted Solution

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..
LVL 28

Expert Comment

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

Author Comment

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?
LVL 25

Expert Comment

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

Expert Comment

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

Author Comment

ID: 12345924
How to get to IIS?
LVL 28

Expert Comment

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

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 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