Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to capture permissions error when loading xml file

Status
Not open for further replies.

kdelacruz

Technical User
Oct 7, 2002
25
0
0
ES
Hello --
In my asp page (not asp.net), I am loading an xml file and am trying to take care of as many potential erros as possible.

How can I capture an Access Denied error on my xml file? (I removed permissions from the xml file and get this error:
Error Type:
msxml3.dll (0x80070005)
Access is denied. )

Code:
objSourceFile = Server.MapPath("demos/presnew.xml")
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = false

'line that produces error
objXML.load objSourceFile

Can anyone tell me how to capture this error? I appreciate any help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top