473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CreateObject error

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.
Jul 19 '05 #1
3 1717
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" <mj*******@hotmail.com> wrote in message
news:1e**************************@posting.google.c 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.

Jul 19 '05 #2
> 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/
Jul 19 '05 #3
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 :o)

"Minny" <mj*******@hotmail.com> wrote in message
news:1e**************************@posting.google.c 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.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter Koller | last post by:
Hi group! I am getting the following error from my ASP application: Microsoft VBScript runtime error '800a0007' Out of memory: 'Server.CreateObject' It always (as far as i have...
0
by: Roland Johann | last post by:
On my Windows Server 2003 Web Edition I have installed an application which offers some OLE Automation Objects. On my local system (W2k Prof) it works fine but on my server 2003 I have a big...
6
by: MacKenzie | last post by:
The statement in an asp page: dim objShell Set objShell = WScript.CreateObject("WScript.Shell") now gives this error: VB err= 424,Object required If I use...
7
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
12
by: karen | last post by:
Hi all : this is going to be a long post. So i apologize in advance :) i am converting a java program in VB right now. I am a java programmer by trade. so i am no expert in this department. I...
2
by: C Williams | last post by:
Hi, I am having some problems with CreateObject and Powerpoint. I'm working from VB.NET with Powerpoint 2003. The code below is only ever called when powerpoint is already open. It's called...
1
by: Lynn Zou | last post by:
In our system , we use an ASP page to upload files but sometimes it doesnot work as it suppose to do and we found error log in Application Error as: Event Type: Error Event Source: Active...
0
by: amitpatil | last post by:
I am having trouble with following error. there are few registration page when i register 2 members it works but when i try to create 3rd one i get following error and then for 10 mins or so website...
9
by: salad | last post by:
I have the following code. I have a reference to the Outlook library in the reference list. My machine is standalone, not on a network. Dim Olapp As Outlook.Application Set Olapp =...
1
by: ashish | last post by:
Dim oCon Err.Clear Set oCon = Server.CreateObject("ADODB.Connection") If Err.Number = 0 Then '// '// Open an ADODB.Connection to the folder URL '// oCon.Provider = "ExOLEDB.DataSource"
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.