Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML

From: "Alex Krawarik[MSFT]" <alexkr@---------.--->
To: NULL
Date: 7/7/2006 4:25:00 PM

If thats really where the error is then the user context that ASP is running 
under cannot instantiate MSXML4.

That would be pretty odd unless you are doing something "non-default" on you 
IIS box. The more likely scenario is that the next line is trying to call 
.load() on the DomDocument, and that path is restricted somehow, perhaps a 
permissions issue on the directory?

You can try one or two things to narrow it down:

1) Whatever resource you are loading into that DOM, try something else? Code 
up a simple ASP page that instantiates a DOM document and uses MSXML3 or 4 
to loadXML("<foo />"), ... if that works fine, then see if it will load 
"C:\temp\foo.xml" where foo.xml is literally just <foo /> saved in 
notepad....you get the idea.

If all this works great, then the issue is likely with the ACLs on your 
resource that you are loading.

If all this fails with the same kind of Access Denied that you saw on line 
10...

2) Try replacing MSXML4 progIDs with MSXML3 progIDs to see if its an MSXML4 
install issue. This might be trickier if your ASP app is big, or highly 
interdepenedent, as with MSXML you cannot mix and match progID versions, 
typically. Anyway. if its an install issue it would be weird but you can 
never trust those durn computers!

Alex

"MaxwellReid" <MaxwellReid@d...> wrote in message 
news:7C0C5601-616C-4D5D-812E-50834828EC19@m......
>    var xmlDoc=new ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
>
> Environment is XP (SP2) IIS5
>
>
> "Alex Krawarik[MSFT]" wrote:
>
>> Well, what does select.asp do at line 10?
>>
>> "MaxwellReid" <MaxwellReid@d...> wrote in message
>> news:08783CF1-DF95-4720-B870-9F848F454F50@m......
>> > oops, something has changed
>> >
>> > Error Type:
>> > msxml4.dll (0x80070005)
>> > Access is denied.
>> > /trader/select.asp, line 10
>> >
>> > i have an access denial. um... how do i fix?
>> >
>> > Max
>> >
>> >
>> > "Martin Honnen" wrote:
>> >
>> >>
>> >>
>> >> MaxwellReid wrote:
>> >>
>> >>
>> >> > Error Type:
>> >> > Microsoft JScript runtime (0x800A01AD)
>> >> > Automation server can't create object
>> >> > /trader/select.asp, line 8
>> >> >
>> >> > Line 8 below
>> >> >     var xmlDoc=new 
>> >> > ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
>> >>
>> >> You need to download and install MSXML 4 first. Also note that by now
>> >> the latest version of MSXML is MSXML 6 so you might as well download 
>> >> and
>> >> install that version and change your code to use e.g.
>> >>    new ActiveXObject("MSXML2.FreeThreadedDOMDocument.6.0")
>> >> On the other hand that switch is not totally painless as MSXML 6 by
>> >> default has things like DTD validation turned off so depending on the
>> >> needs on your program it does not suffice to swith the 4.0 to 6.0 at
>> >> some places, you also need to set some additional properties. Check 
>> >> the
>> >> online MSXML docs for details.
>> >>
>> >> MSXML download is here:
>> >> <http://msdn.microsoft.com/XML/XMLDownloads/default.aspx>
>> >>
>> >>
>> >> -- 
>> >>
>> >> Martin Honnen --- MVP XML
>> >> http://JavaScript.FAQTs.com/
>> >>
>>
>>
>> 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent