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

smtpmail send error (Access Denied or Error loading type library/DLL)

I have a strange (but very blocking) result when using the smtpmail
class from an ASPX page :

here is the (very simple !) code...
'--------------------------------------------------
mail.To = "el@illico.fr"
mail.From = "el@illico.fr"
mail.Subject = "test envoi de mail"
mail.Body = "test envoi de mail"

System.Web.Mail.SmtpMail.SmtpServer = "localhost"
System.Web.Mail.SmtpMail.Send(mail)
'--------------------------------------------------

.... and here is the error message :

'--------------------------------------------------
Error loading type library/DLL.
Exception Details: System.Runtime.InteropServices.COMException: Error
loading type library/DLL.
Stack Trace:

[COMException (0x80029c4a): Error loading type library/DLL.]

[TargetInvocationException: Exception has been thrown by the target of
an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
Int32 culture, String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags
invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters) +468
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1195
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
ASP.testmail_aspx.Page_Load(Object sender, EventArgs e) in
F:\OpenPortal Test\site\OpDotNet\testmail.aspx:13
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
'--------------------------------------------------

I have this error only on one server, the production one... it works
fine on my dev and test servers. Here are the configs of the 4 servers
:
- DEV
windows 2003 server US, framework 1.1, office 2003 with outlook
- TEST1
windows 2003 server US, framework 1.1, office 2003 with outlook
- TEST2
windows 2000 server US, framework 1.1
- PROD2 (doesn't work)
windows 2000 server US, framework 1.1, office 2003 with outlook

I tried to put the ASPNET user in the Administrators group, but it
didn't change anything. I also tried to add an identity
impersonate="true" in the web.config, so that the user is now
IUSR_machine, and the error message is now different :

'--------------------------------------------------
Access is denied.
Exception Details: System.UnauthorizedAccessException: Access is
denied.
'--------------------------------------------------

Anyone has an idea ? I have found nothing in the groups nor in the
Microsoft KB... but it seems to be in relation with the CDOSYS
library...
Nov 18 '05 #1
0 2495

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

Similar topics

0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send...
1
by: Michael | last post by:
Hello, I've read a lot of threads on this subject, but they typically go back to a problem with the smtp server configuration. In my case, everything works great until I uncomment the one line...
6
by: Robert Pettersson | last post by:
Hi, I have built an webapp in C# that uses SMTPMail to send mail to users. When I installed it on the prodserver everything worked fine for me, but the users can not send mail. They get Access...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
0
by: Eric van Wijk | last post by:
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: ...
1
by: Diego F. | last post by:
I'm having this error after reinstalling VS. When using SmtpMail.Send I get an error. I was searching about this and I see that there's an error with my CDO.dll library: it's not registred. How can...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
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.