Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of nauman_ahmed
nauman_ahmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Tom Knowlton

ASKER

How can I find out the name of my SMTP server if I don't already know it?
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()
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
1. Copy CDONTS.dll to System32 dir.

2. Start -> Run -> cmd

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

-Nauman
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