By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,558 Members | 1,533 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,558 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.