473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Write xml file in ASP with MSXML object

Ray
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

Someone can help me? It is urgent!
Jul 19 '05 #1
1 3067


Ray wrote:

I cannot write a xml file with the following code
dim objXml
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.load server.mappath("../online.xml")
If objXML.parseError.errorCode <> 0 Then
response.write "parse online.xml error(" & xsl & ")"
response.end
End If

dim rootNode
Set rootNode = objXML.documentElement

... ....

-> 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)
"


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/

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Keith Chadwick | last post by:
I am current in the process of converting an existing ASP application to ASP.NET. The existing application makes extensive use of server side XML transformations as in ...
6
by: Alfred Taylor | last post by:
I'm having performance/memory problems using .NET's XslTransform class so I thought I'd give the MSXML object's a whirl. The question I haven't been able to find in these groups is can I use C#...
4
by: Jozef | last post by:
Hello, I'd like to determine the size of a file via a URL. I'm not even sure how to do this on the local machine, let alone a URL. Any help would be greatly appreciated. Thanks!
11
by: Lucky | last post by:
hi guys, i need to parse html data that i've got from "Inet" object in vb6. now i want to prase the html data. here i got 2 options. one is MSXML and other is MSHTML. i tried both of them but i...
0
by: MLH | last post by:
In the following code snippet, notice ("PIN=1234567890&MSSG=Here+is+a+short+message+-+no+spaces+-+just+plusses&Q1=0") I have it that way because I thought PLUSes were required and that spaces...
10
by: spacehopper_man | last post by:
ok - C# contractor on first contract getting this bad boy: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I see this intermittantly...
3
by: balakrishnan.dinesh | last post by:
hi frnds How to determine the version of the MSXML installed on a computer and How to determine the version of the MSXML used by Internet Explorer through javascript code. Can anyone say me ,...
7
by: Edward | last post by:
Hello: I need to dynamically include documents stored in my own website. The website is coded in ASP. As far as I know there are two common options: FSO and the MSXML Objects. Which one of the...
4
by: mrjaxon | last post by:
I have a C# web application which leverages MSXML that I am trying to migrate to a 64 bit environment. Currently the application is built on the .NET 2.0 Framework and using MSXML 6 (though I had...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.