• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1026
  • Last Modified:

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

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
Tom Knowlton
Asked:
Tom Knowlton
  • 4
  • 3
1 Solution
 
nauman_ahmedCommented:
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
 
nauman_ahmedCommented:
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
 
Tom KnowltonWeb developerAuthor Commented:
How can I find out the name of my SMTP server if I don't already know it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Tom KnowltonWeb developerAuthor Commented:
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
 
nauman_ahmedCommented:
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
 
nauman_ahmedCommented:
1. Copy CDONTS.dll to System32 dir.

2. Start -> Run -> cmd

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

-Nauman
0
 
Tom KnowltonWeb developerAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now