BC30451: Name 'objCDO' is not declared

  • Thread starter Thread starter AbraAbraCadabra
  • Start date 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!
 
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
 
Back
Top