Sponsored by
www.aspnetemail.com
|
 |
Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
-
Help
[ Reply ]
can anybody tell where (which file) to make the changes.
Rishabh [ r77_indian ( at ) yahoo dot com ],
2004-03-04 02:29:01
#
-
RE: Help
[ Reply ]
in your C# or VB.NET code file.
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-03-04 05:37:48
#
-
RE RE: Help
[ Reply ]
When I was developing my windows app and specified the SMTP server in code I would get the 'Cannot access CDO message objet'. I found some online docs that said to use the smart host property in IIS SMTP virtual server. My app worked fine and still does for all users except one. Now that user is getting "the 'Send Using' Configuration value is invalid" exception. Have you heard of other resons for this exception being thrown and how to handle it? Thanks!
meghan [ kellym_33 ( at ) hotmail dot com ],
2004-03-25 10:16:53
#
-
RE: RE RE: Help
[ Reply ]
Hi, did you solve it?, i am having the same problem
In Need The Answer Too !! [ phra_tankian ( at ) hotmail dot com ],
2008-06-11 11:35:09
#
-
RE: Help
[ Reply ]
I have set the SmtpServer property to localhost, 127.0.0.1 and even the ip address my dsl provider gave to this machine but couldn't get rid of this error.
Babur Mansoor [ baburman ( at ) hotmail dot com ],
2004-03-31 00:38:08
#
-
RE RE: Help
[ Reply ]
I ran into the same thing you did. I tried setting the configuration properties, and got the error you did. If I removed the configuration stuff, I went back to the original "SendUsing" configuration value error.
Luckily, I stumbled upon a fix. I was moving a site from one Win2k3 server to another. It worked on the old one, but wasn't working on the new one. After comparing the SMTP settings between the two, I found a difference. When I set them up identically, the problem went away, without needing the configuration code.
Here's what I did:
* Go to the Internet Information Services manager, and right-click on Default SMTP Virtual Server; select Properties. This will give you a pop-up titled "Default SMTP Virtual Server Properties." * Go to the Security tab, and look at the list of operators. My working configuration has three entries:
- Administrators (the machine's local group) - NT AUTHORITY\LOCAL SERVICE - NT AUTHORITY\NETWORK SERVICE
If you don't have those last two lines, you will continue to get the error, regardless of what you do programmatically.
To add the last two: * Hit the Add button; you will get a pop-up titled "Select Users or Groups." * Hit the Object Types button; you will get a pop-up titled "Object Types." Make sure Users, Groups and Security Principals are checked, then hit OK. This takes you back to the "Select Users or Groups" pop-up. * Hit the Locations button; this will give you a pop-up titled "Locations." Select the machine name (not a domain) from the list, then hit OK. This will take you back to "Select Users or Groups." * Hit the Advanced button; this will bring up another, larger pop-up titled "Select Users or Groups." * In this new pop-up window, hit Find Now. It will show you a complete list of users, groups and internal security principals for the machine * Select LOCAL SERVICE and NETWORK SERVICE, then hit OK * You're back to the smaller "Select Users or Groups" pop-up. You should see LOCAL SERVICE and NETWORK SERVICE in the box. Hit OK * You're now back to the "Default SMTP Virtual Server Properties" window. You should now have all the necessary groups listed.
After doing this, I was able to get ASP to send e-mail from that server, without needing to mess with any SmtpMail.* stuff, at all.
Tony [ tmchesser ( at ) yahoo dot com ],
2004-08-11 07:51:52
#
-
RE RE: Help
[ Reply ]
Step 1 Use SmtpMail.SmtpServer = "localhost" in your code to get rid of This error: The "SendUsing" configuration value is invalid.
Step 2 Run inetmgr, then right click on "Default SMTP Virtual Server", then choose the Tab "Access", then click on "Relay..." button from "Relay restrictions", then choose "All except the list below" radio button and click OK. This will get rid of the relay error.
Have to follow both Step 1 and Step 2.
Thanks for all the help from this website and replies from everybody
Fai [ faiboy1 ( at ) hotmail dot com ],
2004-12-08 01:08:03
#
-
RE: RE RE: Help
[ Reply ]
This worked and got rid of that annoying error. However, doesn't it open up my machine for relay by anyone (e.g. spammers)?
Thx!
Johnnie Miami [ johnnie_miami ( at ) yahoo dot com ],
2005-08-02 09:24:02
#
-
RE RE: RE RE: Help
[ Reply ]
I actually changed this to use "Only the List Below" and added 127.0.0.1 and it worked great. Thanks again!
Johnnie Miami [ Johnnie_Miami ( at ) yahoo dot com ],
2005-08-02 10:01:43
#
-
RE: RE RE: RE RE: Help
[ Reply ]
In IIS6 for Win2003SVR I had this same problem with the error showing after submitting a form. Check to see if IIS5.0 Isolation Mode is unchecked. That fixed my problem.
Nate Sopkin [ nsopkin ( at ) whe dot org ],
2005-11-21 17:03:43
#
-
RE: RE RE: Help
[ Reply ]
After you set the "SmtpMail.SmtpServer" settings, make sure you set the Application Protection settings to low in IIS ( under IIS --> properties--> home directory ) This worked on Win XP Pro SP 2.
Vijay Karthik [ shell_script ( at ) hotmail dot com ],
2005-12-16 09:26:32
#
-
RE: Help
[ Reply ]
Hello,
I am using web mail server. It has SMTP configured on it. We have 3 sites on our server. Two of them are working ok with smtp.server=localhost and one is having problem with sending mail as " System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid. "
I tried using localhost and ip both... but was fail. Please let me know the reason.
Regards, Niraj
Niraj Ranka [ nirajranka ( at ) gmail dot com ],
2006-09-15 00:38:56
#
-
RE RE: Help
[ Reply ]
send email in asp.but create the error.please help me. CDO.Message.1 (0x80040220) The "SendUsing" configuration value is invalid.
Nites [ tnitesh28 ( at ) gmail dot com ],
2008-03-14 08:43:40
#
-
RE: Help
[ Reply ]
i am getting the error when i am creating a setup and execting it on a saperate pc? plz help me
siddhesh [ siddheshswt ( at ) gmail dot com ],
2007-01-15 02:29:51
#
-
filedialogbox
[ Reply ]
Hi I am facing some problem how can i create the instance of openFileDialogBox using C# i have writtenthis code private void Button1_Click(object sender, System.EventArgs e) { openFileDialog openFileDialog1=new openFileDialog(); if (this.openFileDialog1.ShowDialog() == DialogResult.OK) { TextBoxatt.Text = this.openFileDialog1.FileName; }
} plz send code immediate
sisira kumar sahu [ sisira_silicon2001 ( at ) yahoo dot co dot in ],
2004-05-23 06:40:04
#
-
filedialogbox
[ Reply ]
Hi I am facing some problem how can i create the instance of openFileDialogBox using C# i have writtenthis code private void Button1_Click(object sender, System.EventArgs e) { openFileDialog openFileDialog1=new openFileDialog(); if (this.openFileDialog1.ShowDialog() == DialogResult.OK) { TextBoxatt.Text = this.openFileDialog1.FileName; }
} plz send code immediate
sisira kumar sahu [ sisira_silicon2001 ( at ) yahoo dot co dot in ],
2004-05-23 06:52:08
#
-
Help with EMail Feedback form
[ Reply ]
Hi everybody, I have a feedback form to send an email message form my web site: the code is below:
private void SendMail() { MailMessage objEmail = new MailMessage(); objEmail.From= "abcl@abc.com"; objEMail.To = "aaa@aaa.ca";
...other parameters SmtpMail.SmtpServer = "smtp.whatever.ca"; SmtpMail.Send( objEMail); objEmail = null; }
if I use it with my ISP (with local smtp and local mailboxes)on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly to the provided SMTP) ,an exception get thrown. The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this problem?
thank you in advance for your help
Francesco [ zagor ( at ) sympatico dot ca ],
2004-09-14 06:11:42
#
-
RE: Help with EMail Feedback form
[ Reply ]
Sorry: To clarify the previous , the exception is: By debuggin it from the visual studio environment: ex.Message = "Could not access CDO.Message object"
when I actually upload to the host, with <customErrors mode="Off" /> in the web.config file, so the support of my hosting service can see the problem the error says : "Failed to connect to the server" etc.
Francesco [ zagor ( at ) syamptico dot ca ],
2004-09-14 06:16:40
#
-
RE: Help with EMail Feedback form
[ Reply ]
|