[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Err.number & -2147221005

Subject: RE: Err.number & -2147221005
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Sun, 20 Aug 2000 14:45:56 +0100
errnumber 2147463164
Never seen it before but it is perfectly reasonable behaviour and works the
same in all versions of VBScript. -2147221005 is the ole automation error
number for Invalid class string.

-2147221005 (800401F3)    Invalid class string.

So doing this with an invalid class string and on error set to resume next

>Set xmlDoc = Server.CreateObject(msxmlString)

will set Err.number to -2147221005 which is correct. However doing this

>	errnumber=CINT(Err.number)

will set Err.number to 6 which is a runtime Overflow error. So then doing
this

>	errnumber=CINT(Err.number)

will set errnumber to 6.
I don't know what you mean about 6 being a correct value.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of lists@xxxxxxxxxx
>Sent: 20 August 2000 10:48
>To: XSL-List@xxxxxxxxxxxxxxxx
>Subject: Err.number & -2147221005
>
>
>Anyone found this error?
>Running ASP pages on Win2000 Advanced Server:
>
>	Set xmlDoc = Server.CreateObject(msxmlString)
>	If Err.number > 0 Then
>
>If I run this with a faulty msxmlString, Err.number is set to
>"-2147221005". If I do the following instead:
>
>	Set xmlDoc = Server.CreateObject(msxmlString)
>	errnumber=CINT(Err.number)
>	errnumber=CINT(Err.number)
>
>then ... the first Err.number is -2147221005, the second is 6, the correct
>value.
>Anyone else found this?
>
>Thanks, Roland.
>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.