Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2009, 09:07 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Microsoft VBScript runtime error '800a0005'

Dear Sir/Madam,

I am getting below error when i access our application. before it was working fine.

Microsoft VBScript runtime error '800a0005'Invalid procedure call or argument

Please any one help me on this. below is the code line i am getting this error.

status = swobj.Login(inpstr, xmlstr, errorstr)

Thanks & RegardsPradeep Kumar B N
 
Old April 28th, 2009, 03:09 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Nobody can answer that question from such limited information.

What type of object *IS* the swobj that you show there?

Show more code. If the object in question is an instance of a VBScript class, show the class code. If it's a COM component of some kind, where did you get it from?
 
Old April 29th, 2009, 12:50 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript runtime error '800a0005'

the code is the following :
Here I am using COM component
=====================================

set xmlobj = server.CreateObject("Microsoft.XMLDOM")
set nodeobj = server.CreateObject("Microsoft.XMLDOM")
set swobj = server.CreateObject("SupplyWorksMax.User")
dsn = "temp"
xmlobj.loadXML("<xml/>")
set nodeobj = xmlobj.createElement("dsn")
nodeobj.text = dsn
xmlobj.documentElement.appendChild nodeobj

set nodeobj = xmlobj.createElement("login")
nodeobj.setAttribute "username", username
nodeobj.setAttribute "password", password
nodeobj.setAttribute "appid", CStr(appId)
nodeobj.setAttribute "version", strAppVersion
xmlobj.documentElement.appendChild nodeobj

inpstr = xmlobj.xml

status = swobj.Login(inpstr, xmlstr, errorstr)
======================================

then i get the error Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument .

I get this error on my QA Server.the server is windows 2003 Server.

The nice thing is when I uploaded to code to my Windows 2000 Server hosting. IT worked

I need help in this if someone knows what is going on. is there a special software or a component need to be installed. on my server.


Thanks & Regards,
Pradeep Kumar B N

Last edited by bsvnhll; April 29th, 2009 at 01:15 AM..
 
Old April 30th, 2009, 02:26 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Well, yes, of course. You must install the *component* you used there!

SupplyWorksMax.User

I've never heard of that component, and Google doesn't find any relevant hits (except yours), so I would have to guess that it is something that your own company has created. You will have to find it and install it.
 
Old May 4th, 2009, 12:45 AM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript runtime error '800a0005'

Dear Sir,

I had installed the component and i am able to create an object from that class. but i am not able to access the method from my MS windows server 2003. with the same com and same object i am able to use in other windows 2003 servers. it was working fine earlier in the same server that currently i am working. all of a sudden I am getting this run time error.

Please help me.

Thanks & Regards,
Pradeep Kumar B N
 
Old May 4th, 2009, 01:40 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Oh. I'm sorry. I missed your saying it worked on other servers.

Ugh.

Okay, so the problem *PROBABLY* is in one of your arguments to the method.

For example, if the COM component is expecting a String and you pass a Double, then VBS won't be able to match to that method. Remember, it has to match BY TYPE when calling a method.

In the code you show there, you do *NOT* create any definition of either xmlstr or errorstr.
Code:
status = swobj.Login(inpstr, xmlstr, errorstr)
Perhaps you just need to make sure each of those *IS* a string??

That is, maybe just do
Code:
xmlstr = ""
errorstr = ""
status = swobj.Login(inpstr, xmlstr, errorstr)
If you have the code for that component, can you show JUST the declaration line for that method?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime error '800a01a8' gmoney060 BOOK: Beginning ASP 3.0 1 June 2nd, 2004 01:18 PM
Microsoft VBScript runtime error '800a000d' mwlyoung Classic ASP Databases 3 April 15th, 2004 04:54 AM
Microsoft VBScript runtime error '800a01a8' dlgee Classic ASP Basics 4 January 25th, 2004 05:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.