473,320 Members | 1,952 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,320 software developers and data experts.

BC30451: Name 'objCDO' is not declared

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!
Sep 1 '06 #1
1 1502
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message
news:OA**************@TK2MSFTNGP02.phx.gbl...
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
Sep 1 '06 #2

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

Similar topics

0
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false"...
3
by: selena | last post by:
I have created 2 ASP pages that gives users the option of switching back and forth between French and English. They click on the word English and it converted the text to English and the French...
1
by: Matt Tapia | last post by:
I trying to compile a .vb file as such: vbc /t:library /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll /r:System.dll /r:System.Data.Dll /r:System.Web.Services.dll /r:System.Xml.dll...
1
by: WUT | last post by:
BC30451: Name 'MyDataList' is not declared. Source Error: Line 9: dim ds as DataSet = new DataSet() Line 10: objCmd.Fill(ds, "OIL_H") Line 11: MyDataList.DataSource =...
1
by: SinCity | last post by:
I get this error message: BC30451: Name '__w' is not declared And here is my code... script language="javascript"> document.form1.PageUrl.value='<%=Request.ServerVariables("HTTP_REFERER")%>';...
3
by: SinCity | last post by:
I am getting the error "BC30451: Name '__w' is not declared". How can I fix this? Here is my code... <script language="javascript">...
0
by: David | last post by:
Hi, I use a public shared sub into a class for performing an insert into a table of the database. I get following error: BC30451: Name 'consql' is not declared at line: consql.insert_rec(ddl1)...
4
by: Don Quijote de Nicaragua | last post by:
Hi, I have a problem trying to load a page, sends me the following error message: Error Message: BC30451: Name 'Utilities' is not declared. Line 50: </ DIV> Line 51: <div id="side"> Line 52:...
0
by: Don Quijote de Nicaragua | last post by:
Hi EveryOne, follow these steps and always sends the wrong message error. "BC30451: Name 'Ctest' is not declared." 1- Create the Class Imports Microsoft.VisualBasic Namespace...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.