Solved

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

Posted on 2004-08-03
7
986 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

21 Experts available now in Live!

Get 1:1 Help Now