Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CreateObject error

Reply
Thread Tools

CreateObject error

 
 
Minny
Guest
Posts: n/a
 
      05-06-2004
I've got an asp page using CDONTS for mail. It's running on an NT4
server with the latest updates. I don't have any problems with the
page except I want to convert it to a vbscript (.vbs) file so that I
can schedule it to run with Task Scheduler. So the original page
works fine.

I've copied the page code and edited it to scripting standards and
saved it as a .vbs file. It's on the same server as the original asp
page.

But I get this error when it runs:
ActiveX component can't create object: 'CDONTS.NewMail'

I launch it thru a mapped drive on my local machine and a double
click.

I've searched the www high and low and can't find any solution that
works - or makes sense to me.

Any help is appreciated.
 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      05-06-2004
Might help if you posted the code causing the error? (including the first
few lines before and after)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Minny" <> wrote in message
news: om...
> I've got an asp page using CDONTS for mail. It's running on an NT4
> server with the latest updates. I don't have any problems with the
> page except I want to convert it to a vbscript (.vbs) file so that I
> can schedule it to run with Task Scheduler. So the original page
> works fine.
>
> I've copied the page code and edited it to scripting standards and
> saved it as a .vbs file. It's on the same server as the original asp
> page.
>
> But I get this error when it runs:
> ActiveX component can't create object: 'CDONTS.NewMail'
>
> I launch it thru a mapped drive on my local machine and a double
> click.
>
> I've searched the www high and low and can't find any solution that
> works - or makes sense to me.
>
> Any help is appreciated.



 
Reply With Quote
 
 
 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      05-06-2004
> I launch it thru a mapped drive

Why? If it's running on the local machine, and scheduled from the local
machine, use a local drive letter.

If you're trying to run it from another machine, you need to make sure it
can actually run *on that machine* -- that's where CDONTS.NewMail needs to
be available (and you need sufficient privileges to instantiate it
remotely). If the other system is Windows XP or Windows Server 2003, it
doesn't have CDONTS.NewMail. CDONTS has been deprecated anyway, so you
should use CDO.Message (see http://www.aspfaq.com/2026).

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


 
Reply With Quote
 
Dominique
Guest
Posts: n/a
 
      05-06-2004
do a check c:\winnt\system32 folder for cdosys.*

if you say you got all the latest updates i bet it should be there.. so use
cdo.Message instead like the guy said )

"Minny" <> wrote in message
news: om...
> I've got an asp page using CDONTS for mail. It's running on an NT4
> server with the latest updates. I don't have any problems with the
> page except I want to convert it to a vbscript (.vbs) file so that I
> can schedule it to run with Task Scheduler. So the original page
> works fine.
>
> I've copied the page code and edited it to scripting standards and
> saved it as a .vbs file. It's on the same server as the original asp
> page.
>
> But I get this error when it runs:
> ActiveX component can't create object: 'CDONTS.NewMail'
>
> I launch it thru a mapped drive on my local machine and a double
> click.
>
> I've searched the www high and low and can't find any solution that
> works - or makes sense to me.
>
> Any help is appreciated.



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.CreateObject Vs CreateObject Sagar ASP General 2 01-15-2008 07:15 PM
server.createobject("cdo.message") from asp is giving error Server.CreateObject Failed ashish ASP General 1 08-14-2007 10:01 PM
Wscript.CreateObject error on ASP page MacKenzie ASP General 6 08-03-2005 05:31 PM
if in asp is CreateObject("Microsoft.XMLHTTP"). Is in asp.net this Server.CreateObject("MSXML2.ServerXMLHTTP") ? Raúl Martín ASP .Net 1 05-13-2004 03:47 AM
Server.CreateObject Access Error Davinder ASP General 1 11-06-2003 06:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57