We just finish rebuilding a Microsoft Windows Server 2003 Standard Edition, the server was working perfectly and the entire website too in the passâ?

But now, anything else is working except, any of the programming that calls a instance of a CDONTS.NewMail Object

<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = "no_reply@adsdmt.com"
objMail.Subject = "A Sample mail sent with CDONTS"
objMail.To = "dsanchez@arteaga.com"
objMail.Body = "Here is the message."
objMail.Send
set objMail = nothing
%

When I execute this simple test I receive the following error

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/DMT/smtp.asp, line 3
800401f3

I have been doing some research in the support website, but everything is related to ADO

Can please someone have some clue with this

So far I just found this article

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/columns/insider/iisi0503.as

Re: Server object error 'ASP 0177 : 800401f3' by Egbert

Egbert
Fri Jan 30 11:11:07 CST 2004

"Arteaga Interactivo" <dsanchez@arteaga.com> wrote in message
news:33CF609F-AAD4-46E2-ACF2-46EC9571216D@microsoft.com...
> We just finish rebuilding a Microsoft Windows Server 2003 Standard
Edition, the server was working perfectly and the entire website too in the
passâ?¦
>
> But now, anything else is working except, any of the programming that
calls a instance of a CDONTS.NewMail Object.

CDONTS is obsoluted, already since Windows 2000.

Please use CDO...


<%
Dim cdoConfig, mail
Set mail = CreateObject("CDO.Message")
Set cdoConfig = CreateObject("CDO.Configuration")
with cdoConfig.fields
.item("http://schemas.microsoft.com/cdo/configuration/sendusing").value =
2

.item("http://schemas.microsoft.com/cdo/configuration/smtpserver").value =
"192.168.0.7" '<-- here comes your SMPT server
.update
End With

Set mail.Configuration = cdoConfig
Mail.To = "anyone@blah.com"
Mail.From = "youremail@blah.com"
mail.Subject ="my SUbject"
mail.Textbody= "la la la "
Mail.Send

%>


> <%
> Dim objMail
> Set objMail = Server.CreateObject("CDONTS.NewMail")
>
> objMail.From = "no_reply@adsdmt.com"
> objMail.Subject = "A Sample mail sent with CDONTS"
> objMail.To = "dsanchez@arteaga.com"
> objMail.Body = "Here is the message."
> objMail.Send
> set objMail = nothing

>
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/columns/insider/iisi0503.asp
>


Re: Server object error 'ASP 0177 : 800401f3' by Paul

Paul
Fri Jan 30 11:28:09 CST 2004

On Fri, 30 Jan 2004 08:31:11 -0800, "Arteaga Interactivo"
<dsanchez@arteaga.com> wrote:

>We just finish rebuilding a Microsoft Windows Server 2003 Standard Edition, the server was working perfectly and the entire website too in the pass?
>
>But now, anything else is working except, any of the programming that calls a instance of a CDONTS.NewMail Object.
>
>
><%
>Dim objMail
>Set objMail = Server.CreateObject("CDONTS.NewMail")
>
>objMail.From = "no_reply@adsdmt.com"
>objMail.Subject = "A Sample mail sent with CDONTS"
>objMail.To = "dsanchez@arteaga.com"
>objMail.Body = "Here is the message."
>objMail.Send
>set objMail = nothing
>%>
>
>When I execute this simple test I receive the following error:
>
>Server object error 'ASP 0177 : 800401f3'
>Server.CreateObject Failed
>/DMT/smtp.asp, line 3
>800401f3
>
>I have been doing some research in the support website, but everything is related to ADO.
>
>Can please someone have some clue with this.
>
>So far I just found this article:
>
>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/columns/insider/iisi0503.asp

Read this KB article :

HOW TO: Migrate the Collaboration Data Objects for NTS Applications to
Microsoft Collaboration Data Objects for Windows 2000
http://support.microsoft.com/?kbid=810702


Regards,

Paul Lynch
MCSE

Re: Server object error 'ASP 0177 : 800401f3' by dsanchez

dsanchez
Fri Jan 30 12:46:05 CST 2004

Its seems illogical that something that was working already in Windows 20003, seize to work.

Re: Server object error 'ASP 0177 : 800401f3' by Egbert

Egbert
Fri Jan 30 13:09:02 CST 2004

"Arteaga Interactivo" <dsanchez@arteaga.com> wrote in message
news:338DF6AE-875F-4060-8CCC-65EF10736B16@microsoft.com...
> Its seems illogical that something that was working already in Windows
20003, seize to work.

I agree.

I guess that you did upgrade your box from Windows 2000 to 2003? If that is
so, it might still have worked. However, MS does not support CDONTS anymore
(CDONTS was an NT4 component).

And you said that you 'rebuilded' Windows 2003. That would mean a fresh
install? If so, there you got the reason it does not work anymore.
If you insist using a non supported component (by MS), you can copy the
CDONTS.dll component and run regsvr32 cdonts.dll on it.

If you have some minutes time and your code is not at 1000 places using
CDONTS it would be very simple to upgrade to CDO as well.

Regards,