![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML >Thread Next - Re: MSXML Re: MSXMLTo: NULL Date: 7/8/2006 4:40:00 PM
thanx Alex.
If i stop counting the space lines i get to the load statement, see below
(as per your reply). thanx again for your time.
Max
<%@LANGUAGE="JavaScript"%>
<!-- #include file="inc/DataStore.asp" -->
<%
//
function loadSource(sourceName){
var xmlDoc=new ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
xmlDoc.async=false;
xmlDoc.load(sourceName);
return xmlDoc;
}
"Alex Krawarik[MSFT]" wrote:
> 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/
> >> >>
> >>
> >>
> >>
>
>
>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
