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
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 31 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 57 sec
Reputation Power: 7
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
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Apr 2004
Location: 94610
Posts: 14,781 medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)  Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Months 1 Week 4 Days 18 h 59 m 6 sec
Reputation Power: 8132
Facebook
Is VPDal5.VpDataWrap expecting an ADO recordset and (presumably) string as arguments? I'm not familiar with this component.
__________________
medialint.com


“Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss

Reply With Quote
  #3  
Old March 9th, 2006, 08:39 PM
kingshah kingshah is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 31 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 57 sec
Reputation Power: 7
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
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Apr 2004
Location: 94610
Posts: 14,781 medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)  Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Months 1 Week 4 Days 18 h 59 m 6 sec
Reputation Power: 8132
Facebook
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
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 31 kingshah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 33 m 57 sec
Reputation Power: 7
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
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Apr 2004
Location: 94610
Posts: 14,781 medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)medialint User rank is General 107th Grade (Above 100000 Reputation Level)  Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1Folding Points: 319635 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Months 1 Week 4 Days 18 h 59 m 6 sec
Reputation Power: 8132
Facebook
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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap