471,354 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 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);

MailMessage mail = new MailMessage();

if (ConfigurationSettings.AppSettings["smtpServer"] != null) {
SmtpMail.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();
} catch (Exception e) {
Exception innerException = e;

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

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
- 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.

Nov 19 '05 #1
0 1702

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Simon Jefferies | last post: by
reply views Thread by MAILER-DAEMON | last post: by
reply views Thread by Blubaugh, David A. | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.