473,405 Members | 2,354 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,405 software developers and data experts.

System.Web.Mail.SmtpMail.Send() causes COMException (0x80029c4a):Error loading type library/DLL.]

Hi All,
After installing SP1 for Windows 2003, I'm running into the 'Error
loading type library/DLL' exception when using CDO through System.Web.Mail:

-------------------------------------------
//try {

// security assertion
SecurityPermission interopPermission = new
SecurityPermission(SecurityPermissionFlag.Unmanage dCode);
interopPermission.Demand();

MailMessage mail = new MailMessage();

if (ConfigurationSettings.AppSettings["smtpServer"] != null) {
SmtpMail.SmtpServer =
ConfigurationSettings.AppSettings["smtpServer"];
//SmtpMail.SmtpServer.Insert(0,
ConfigurationSettings.AppSettings["smtpServer"]);
}
mail.From = ConfigurationSettings.AppSettings["from"];
mail.To = ConfigurationSettings.AppSettings["to"];
mail.Subject = "ASP.NET CDO Test";
mail.BodyFormat = MailFormat.Text;

mail.Body = message.ToString();
SmtpMail.Send(mail);
/*
} catch (Exception e) {
Exception innerException = e;

do {
if (innerException is FileNotFoundException) {
FileNotFoundException fileException =
(FileNotFoundException)innerException;

Trace.Warn(innerException.GetType().FullName,fileE xception.FileName,innerException);
} else {

Trace.Warn(innerException.GetType().FullName,Strin g.Empty,innerException);
}

innerException = innerException.InnerException;
} while (innerException != null);
}
*/
-------------------------------------------

The code runs fine on Windows XP and another Windows 2003 Server which
has had SP1 installed about a month ago.

What I've already tried:
- Mailing from VBScript using CDO directly: works, so CDO must installed
correctly
- Running the same code from a console app: works, so System.Web.Mail
must be installed correctly
- The sugestions from http://www.systemwebmail.com/faq/4.2.1.aspx: do
NOT work

Any help would be greatly welcomed, as I've been baning my head on this
for more than a day now.
Thx in adv.

Eric
Nov 19 '05 #1
0 1805

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

Similar topics

1
by: DM | last post by:
Get this error when I try to run any ASP.NET web app from Visual Studio on my Win2K PC. Anyone seen this before ? BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error...
0
by: Mark Depenbrock | last post by:
--Apple-Mail-2--68472726 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Can not make mysql connection - error log: 030708 08:53:48 mysqld started
12
by: Simon Jefferies | last post by:
Hello, When I load an XML document using the LoadXml function, I get a "System error" exception raised. What causes this? the XML document is valid. Regards Simon Jefferies Tools...
2
by: Nadav | last post by:
Hi, I am using the System.Type.GUID to identify similar types on different computers, one computer send the GUID through a socket while the other resolve the GUID and identify the type, when...
0
by: Franck | last post by:
Hi, Working with a Shared Addin (Autodual Class implementing the IdExtensibility2 interface), I'm just makin test in order to fill a range with values but get ComException Error when trying to set...
0
by: Willem van Rumpt | last post by:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <OOtt3CadGHA.3632@TK2MSFTNGP05.phx.gbl> Newsgroups: microsoft.public.dotnet.languages.csharp...
0
by: MAILER-DAEMON | last post by:
This is a multi-part message in MIME format. --HKLMNNOPQQRSTUUVWXXYZaabcdeffghiijklmmno Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This message has been...
1
by: Angus | last post by:
Why moving a function from protected to public area in class causes error C2556 - overloaded function differs only by return type I have a protected function called GetState like this: enum...
0
by: Blubaugh, David A. | last post by:
Yes, I new it was a directory issue. I am new to Python. Thank You David Blubaugh -----Original Message-----
1
borisding
by: borisding | last post by:
Hi! there, Recently, my client's website, which is coded in ASP Classic has problem in sending email. The script is using Jmail for the email part. Here is the error message: "jmail.SMTPMail...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.