Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
Old April 28th, 2009, 03:09 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
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?
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
  #4 (permalink)  
Old April 30th, 2009, 02:26 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
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.
Reply With Quote
  #5 (permalink)  
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
Reply With Quote
  #6 (permalink)  
Old May 4th, 2009, 01:40 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04:18 PM



All times are GMT -4. The time now is 09:21 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.