Solved

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

Posted on 2004-08-03
7
987 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DateTimepicker 4 33
Two different visual studio versions 3 23
Reset asp.net login password 4 32
Video Player 2017 5 14
Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now