Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2006, 06:57 PM
kingshah kingshah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 29 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 52 sec
Reputation Power: 0
Send a message via Yahoo to kingshah
Run-time error '3001'

I have an vb6 application with install in single machine and contain same web application version build with vs2003.net
when i register the business component to COM+, error message
Run-time error '3001' Arguments are of the wrong type, are out of acceptable range, or conflict with one another.

any suggestion here?

code
'VPDal5 is the component i have register
Public goVpDal As VPDal5.VpDataWrap
dta As ADODB.Recordset
...
...
Call goVpDal.RsOpenReadWrite(dta, strSQL) 'error occur here
...
...

Any help would be appreciate

Reply With Quote
  #2  
Old March 9th, 2006, 07:39 PM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Click here for more information.
 
Join Date: Apr 2004
Location: West of Oakland, North of San Jose, South of Marin
Posts: 12,583 medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 3 Weeks 4 Days 30 m 29 sec
Reputation Power: 2713
Is VPDal5.VpDataWrap expecting an ADO recordset and (presumably) string as arguments? I'm not familiar with this component.
__________________
medialint.com


"Beware of the man who works hard to learn something, learns it, and finds himself no wiser than before. He is full of murderous resentment of people who are ignorant without having come by their ignorance the hard way."
- Vonnegut - Cat's Cradle, 1963

Reply With Quote
  #3  
Old March 9th, 2006, 08:39 PM
kingshah kingshah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 29 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 52 sec
Reputation Power: 0
Send a message via Yahoo to kingshah
'strSQL = SELECT * FROM ToDoList_Global WHERE AdminCode = 'SM'

'##SUMMARY Opens a read-write ADO Record-set.
'##PARAM RecSet An ADODB.Record-set object.
'##PARAM Source Standard sql statement.
'##PARAM VpRsOptions Combination of different values for record-set
Public Function RsOpenReadWrite(ByRef RecSet As adodb.Recordset, ByVal Source As String, _
Optional ByVal VpRsOptions As VpRsOption) As Boolean

Reply With Quote
  #4  
Old March 9th, 2006, 08:55 PM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Click here for more information.
 
Join Date: Apr 2004
Location: West of Oakland, North of San Jose, South of Marin
Posts: 12,583 medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 3 Weeks 4 Days 30 m 29 sec
Reputation Power: 2713
Did you instantiate dta before you passed it?

For example, broken and works in this:

Code:
Sub AcceptADO(ByRef rs0 As ADODB.Recordset, ByVal strSQL As String)
    rs0.Open strSQL, CurrentProject.Connection, adOpenStatic, adLockReadOnly
End Sub

Sub Broken()
    Dim rs0 As ADODB.Recordset
    AcceptADO rs0, "SELECT * FROM MyTable;"
End Sub

Sub Works()
    Dim rs0 As New ADODB.Recordset
    AcceptADO rs0, "SELECT * FROM MyTable;"
End Sub


Different errror, but you should get the point

Reply With Quote
  #5  
Old March 9th, 2006, 10:22 PM
kingshah kingshah is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 29 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 12 m 52 sec
Reputation Power: 0
Send a message via Yahoo to kingshah
i think not coz when retrive from immediate windows

?dta.Source


no output in the windows. before call the rsOpenreadWrite

This problem occur only when the dll were register into Component Services->...->......->COM+ Applications->....<Component>

-EDITED-
When not registered dta value after exec that line of code (no error)

?dta.Source
SELECT * FROM ToDoList_Global WHERE AdminCode = 'SM' ORDER BY DueDate

Last edited by kingshah : March 10th, 2006 at 12:19 AM. Reason: something

Reply With Quote
  #6  
Old March 9th, 2006, 10:39 PM
medialint's Avatar
medialint medialint is offline
Type Cast Exception
Click here for more information.
 
Join Date: Apr 2004
Location: West of Oakland, North of San Jose, South of Marin
Posts: 12,583 medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)medialint User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238848 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 3 Weeks 4 Days 30 m 29 sec
Reputation Power: 2713
I don't really know then. Maybe someone else will suggest something. Offhand I might guess that your registered component is using one version of ADO where your app is using a different one, maybe ... but this is out of my range of expertise. Sorry.

Reply With Quote
  #7  
Old October 31st, 2006, 06:37 PM
gabriel00 gabriel00 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 1 gabriel00 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 42 sec
Reputation Power: 0
Hi kingshah

I have the same problem.
Do you found solution?

Thank, Gabriel

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Run-time error '3001'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway