Invalid Class String
Are you getting the error below?
Server objecterror 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid class string
This error will usually be caused by one of two things...
- A mistype in the Server.CreateObject method
-ex
-set conn = Server.CreateObject("adodd.connection")
as you can see, the adodd, should be adodb
- Another possible cause, would be trying to use an object that has not been installed on the server.
-ex.
-set obj = Server.CreateObject("some.class")
this would give you the error because more than likely, you don't have some.class installed on the server. A real world example of this would be trying to use JMail this does not come installed on servers, and must be downloaded and registered for it to work.
The first one can be solved by carefully going through your code to try to catch the mistype. the second one must be dealt with by the server adminstrator.
Comments
Invalid Class String
RE: Invalid Class String
Chances are it's some kind of mail, upload, or xml component that hasn't been installed on that server. You need to get in contact with the administrator of the box to install whatever you're trying to call
RE: RE: Invalid Class String
I am running windows XP Pro with IIS and am testing my website locally.
The error message is
Technical Information (for support personnel)
Server object, ASP 0177 (0x800401F3)
Invalid class string
/rodbard/sendmail_tenrox_B.asp, line 111
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
POST 702 bytes to /rodbard/sendmail_tenrox_B.asp
FirstName=larry&LastName=rodbard&Title=president&Company=rodbard+%26+Associates&Address=723+Pleasant+Hill+Road&Address2=&City=Ellicott+City&state=MD&Zip=21043&Country=&E-mail=lsr@rodbard.com&website=w . . .
Thursday, May 06, 2004, 1:46:43 PM
Microsoft Support
I have checked the code against the sample on this website (from Martha Graham) and mine matches.
Dim objCDO
Dim from, mailto, Subject, Body, redirect_url
redirect_url = "tenrox_thanks.asp?pdf_file=" & Request("pdf_file")
MailTo = "tenrox@rodbard.com"
Subject = "Tenrox Registration Form - " & Request("BrochureRequested")
From = Request("E-mail")
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = MailTo
objCDO.From = From
objCDO.Subject= Subject
objCDO.Body = Body
objCDO.Send
'Cleanup
Set objCDO = Nothing
Response.Redirect(redirect_url)
I would appreciate any help you can give.
Thanks,
Larry Rodbard
You must me logged in to write a comment.