Groups | Blog | Home
all groups > inetserver asp general > may 2004 >

inetserver asp general : Write xml file in ASP with MSXML object


Ray
5/30/2004 10:56:03 PM
Hi, al
I cannot write a xml file with the following cod
dim objXm
Set objXML = Server.CreateObject("Microsoft.XMLDOM"
objXML.async = Fals
objXML.load server.mappath("../online.xml"
If objXML.parseError.errorCode <> 0 The
response.write "parse online.xml error(" & xsl & ")
response.en
End I

dim rootNod
Set rootNode = objXML.documentElemen

... ...

-> objXML.Save server.mappath("../online.xml"
I don't know what's wrong in the code, when I open this page, IE prompts me

Error Type
msxml3.dll (0x80070005
Access is denied. (in -> line

Martin Honnen
5/31/2004 1:05:36 PM


[quoted text, click to view]


[quoted text, click to view]

It is a security issue, ASP pages are run under a special account that
obviously needs write permission if you want to save some XML to a file.
Make sure the account IUSR_ComputerName has the necessary permissions.
--

Martin Honnen
http://JavaScript.FAQTs.com/
AddThis Social Bookmark Button