Solved

Please help - System.Web.Mail cannot access CDO.Message - HTTPException?

Posted on 2004-08-03
7
991 Views
Last Modified: 2008-02-01
There was a problem faxing.  Details:  System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid.

   --- End of inner exception stack trace ---
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
   at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
   --- End of inner exception stack trace ---
   at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
   at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
   at System.Web.Mail.SmtpMail.Send(MailMessage message)
   at BuyersFund.NEOMail.NEOMail.SendFax()



I do not know how to fix this.
0
Comment
Question by:knowlton
  • 4
  • 3
7 Comments
 
LVL 25

Accepted Solution

by:
nauman_ahmed earned 500 total points
ID: 11705497
You have to specify a server that will be used to send the message:

SmtpMail.SmtpServer = "localhost";

have a look at the following:

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20695647.html?query=+Could+not+access+%27CDO.Message%27+object.&clearTAFilter=true

Best, Nauman

0
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 11705510
Also dont forget to grant the Relay option for your SMTP server to allow relay from 127.0.0.1 n SMTP Server Properties ->Access -> Relay

-Nauman
0
 
LVL 5

Author Comment

by:knowlton
ID: 11705549
How can I find out the name of my SMTP server if I don't already know it?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 5

Author Comment

by:knowlton
ID: 11705624
I set my SMTP server to "localhost".

Now I get a new error message:


There was a problem faxing.  Details:  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL.
   --- End of inner exception stack trace ---
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
   at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
   at System.Web.Mail.SmtpMail.Send(MailMessage message)
   at BuyersFund.NEOMail.NEOMail.SendFax()
0
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 11706023
Which OS are you using? Win2K or Windows XP? If Windows XP, then you might not have CDONTS.dll that is required in messaging. Grab this dll from any Win2K PC and register it using regsvr32 CDONTS.dll.

Best, Nauman
0
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 11706042
1. Copy CDONTS.dll to System32 dir.

2. Start -> Run -> cmd

type: regsvr32 c:\winnt\System32\CDONTS.dll

-Nauman
0
 
LVL 5

Author Comment

by:knowlton
ID: 11706064
The Network Admin just recommended I  use "Local System" versus logging in  (under the Windows Service I am running).

This seems to have cleared-up the error messages as far as e-mail goes....but now I get another message (which I will post seperately).

Thanks,

Tom
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question