Click to See Complete Forum and Search --> : XP Professional and CDONTS error


Woody
11-08-2003, 08:23 PM
Hi
I'm trying to send an email in an application set up within IIS (v 5.1) in XP Pro. Below is the error message I receive:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/asp/email.asp, line 77

Line 77 is:
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

So - I at first thought that SMTP was installed and after searching around other plces inthe internet, I find that the message above means that it isn't.

So, I guess the question is, in XP Pro, how do I get it installed?

Thanks.

Nicodemas
11-10-2003, 12:22 PM
You could always make a backup of your files and then reload IIS on your box.

By default the CDO object is installed with IIS, but not necessarily SMTP.

Woody
11-10-2003, 05:03 PM
Thanks Nicodemas
I tried your suggestion (with special attention to checking the SMTP box for installation) and got the same result - that is. the Server.CreateObject("CDONTS.NewMail") gets the "Invalid class string" message.

There is a "Default Virtual Server" listed on the console tree in the IIS MMC window - in it's properties under the general tab shows "IP address unassigned" Would that have some bearing on this problem?

For some reason, CDONTS doesn't seem to work with XP Pro IIS server. Still wondering if that is some setting I need to have or if in fact XP Pro doesn't support this?

Thanks.
-Woody

Superfly1611
11-13-2003, 08:06 AM
The problem you are having is that CDONTS doesn't actually come with Win XP (Pro or otherwise).
You need to download the cdonts.dll to your Windows\System32 directory and register it on the server for it to work.

To register the dll type "regsvr32 c:\windows\system32\cdonts.dll" into the run command.

I've just had a quick browse on the web and i cant find where i got the dll from as i had that exact same problem.

Woody
11-13-2003, 07:56 PM
Thanks, Superfly

I'll search around for the dll you identified. When I find it - will let you know where - this may be useful for others.
-Woody

Superfly1611
11-14-2003, 06:31 AM
no problem - if you have a windows 2000 server going it will have the dll in the windows/system32 folder.

DMouse
07-03-2004, 12:11 AM
Xp Pro ships with cdosys which is the mail processing component and aparently far superior to cdonts

check out http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_reference.asp?frame=true