BC30451: Name 'objCDO' is not declared

  • Thread starter AbraAbraCadabra
  • Start date
A

AbraAbraCadabra

Help.

I get this error " BC30451: Name 'objCDO' is not declared" and it references
the following line...

objCDO = Server.CreateObject("CDO.Message")

What do I need to do to solve this error (I am in the process of converting
my ASP site to an ASPX site).

Help!
 
M

Mark Rae

I get this error " BC30451: Name 'objCDO' is not declared" and it
references the following line...

objCDO = Server.CreateObject("CDO.Message")

What do I need to do to solve this error (I am in the process of
converting my ASP site to an ASPX site).

Er, well, fairly obviously you need to convert the ASP classic code to
ASP.NET... :)

For one thing, there's no "Server.CreateObject" in ASP.NET...

Secondly, you need to use the System.Web.Mail namespace in ASP.NET 1.x, or
System.Net.Mail in ASP.NET v2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top