Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > System.Web.Mail.SmtpMail.Send() causes COMException (0x80029c4a):Error loading type library/DLL.]

Reply
Thread Tools

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

 
 
Eric van Wijk
Guest
Posts: n/a
 
      05-25-2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to solve COMException Ajith Nair ASP .Net 2 07-22-2005 01:55 AM
SmtpMail.Send causes exception: Error loading type library/dll Diego F. ASP .Net 1 06-06-2005 11:50 AM
COMException on a Web Service Balint Toth ASP .Net 0 04-01-2004 08:59 AM
Postback causes 100=Continue, causes double download prompt? Xavier Osa ASP .Net 0 01-09-2004 11:17 AM
COMException Unspecified Error with ADODB and .NET remote users Jim Lacenski ASP .Net 1 10-18-2003 07:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57