Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Invalid Class String - 0x800401F3
Old 12-09-2004, 01:36 PM Invalid Class String - 0x800401F3
barbara's Avatar
Skilled Talker

Posts: 79
Trades: 0
I got the following error message on my utility.inc file:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/project/utility.inc, line 13 (which is this line of code: Set rs = Server.CreateObject ("ADOB.Recordset")

--------------------------------------------------------

this is my utility.inc file:

<%
'Cks to see if value is in table. Returns a -1 if update, 0 if need to add record
Function CkExistence (sqlstring)

Dim rscount ' The recordset object
Dim myDSN
Dim conn

myDSN = "DSN=HTC;DBQ=C:\Inetpub\wwwroot\database\HTC.m db;"


'Opens a connection object
Set rs = Server.CreateObject ("ADOB.Recordset")
set conn = Server.CreateObject("ADODB.Connection")
'conn.open "C:/Inetpub/wwwroot/database/HTC.mdb"
conn.open myDSN

rscount=conn.execute(sqlstring)

if rscount.eof then
ckexistence = 0
else
ckexistence = -1
end if


End Function
%>

------------------------------
it is use to check to see if a user exist in the database. if it exist then it pull out request info; otherwise, it redirect user to a "add new user page"

thanks
barbara is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-09-2004, 02:33 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
you made a typo, the line you refferred to should be this:
Set rs = Server.CreateObject ("ADODB.Recordset")
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 12-10-2004, 09:43 AM
barbara's Avatar
Skilled Talker

Posts: 79
Trades: 0
now i got this error message:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E0C)
Command text was not set for the command object.
/project/utility.inc, line 18 ( which is this line: rscount=conn.execute(sqlstring))

the error is still in the inc file.

many thanks
barbara is offline
Reply With Quote
View Public Profile
 
Old 12-10-2004, 09:55 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
What does sqlstring contain?
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 12-14-2004, 11:03 AM
barbara's Avatar
Skilled Talker

Posts: 79
Trades: 0
thank you for your help. somehow, i got it to work. :~D
barbara is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Invalid Class String - 0x800401F3
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66378 seconds with 12 queries