473,383 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

SendUsing configuration value is invalid

fm
We are documenting and configuring our email solution.

Our applications will be created with ASP.NET running on Windows 2003
servers using Framework 1.1

To minimize the administrative effort of configuring developer workstations
and servers, we want developers not to specify a value for
System.Web.Mail.SmtpMail.SmtpServer.

We also have a requirement that on the servers the Application Pools in IIS
run under domain accounts maintained by our Windows Server Administration
group. These accounts are not allowed to be Administrators on the servers.

This domain user has been added to the IIS_WPG group and IIS_WPG has been
added as an operator of the Default SMTP Virtual Server.

Scenarios of sending out emails
1)
- Our user is a non-Administrator
- System.Web.Mail.SmtpMail.SmtpServer = ""
- Result: Error: The "SendUsing" configuration value is invalid.

2)
- Our user is a non-Administrator
- System.Web.Mail.SmtpMail.SmtpServer = "localhost"
- Result: Email is successfully sent.

3)
- We make our user an Administrator (which is not allowed as a solution)
- System.Web.Mail.SmtpMail.SmtpServer = ""
- Result: Email is successfully sent.

We want scenario 1 to work. By the results of scenario 3 it looks like a
permission issue for our non-Admin user. I scoured REGMON and FILEMON finding
no hints.

So outside of being an operator for SMTP, what permissions is our user
missing?

Thanks,
fm

Nov 18 '05 #1
5 2444
Hi Fm,

From your description, you're using the System.Web.Mail to send mail and
the smtpserver is the local IIS smtp server(on W2K3 IIS6). However you
found that if you specify the SmtpMail.SmtpServer as "localhost", it work
well. If is assigned "", it only works when the asp.net's process identity
is a domain accoutn which has administrator privilege, yes?

Based on this, I've also performed some tests and did find the same
behaviors. I test the same code in Console application,asp.net(with LOCAL
SYSTEM process account) asp.net (default workerprocess account ),
asp.net(with admin domain worker process account). All of them excepet
using the default workprocess work well. So from a general view, this is
likely a permission issue and I'm also not sure the definite permission we
need. Currently I'm consulting some further experts on this behavior and
I'll update you as soon as I've got any update.

Thanks for your understanding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
fm
Steven,

You've produced exactly the problem we are having. I await your findings.

Thanks,
Fm

"Steven Cheng[MSFT]" wrote:
Hi Fm,

From your description, you're using the System.Web.Mail to send mail and
the smtpserver is the local IIS smtp server(on W2K3 IIS6). However you
found that if you specify the SmtpMail.SmtpServer as "localhost", it work
well. If is assigned "", it only works when the asp.net's process identity
is a domain accoutn which has administrator privilege, yes?

Based on this, I've also performed some tests and did find the same
behaviors. I test the same code in Console application,asp.net(with LOCAL
SYSTEM process account) asp.net (default workerprocess account ),
asp.net(with admin domain worker process account). All of them excepet
using the default workprocess work well. So from a general view, this is
likely a permission issue and I'm also not sure the definite permission we
need. Currently I'm consulting some further experts on this behavior and
I'll update you as soon as I've got any update.

Thanks for your understanding.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3
Hi Fm,

Sorry for keeping you waiting. After some further consultant, I think the
following information maybe helpful:

http://msdn.microsoft.com/library/de...us/e2k3/e2k3/_
techsel_tech_1.asp
=========================
Run-Time Permissions
No special permissions are required to run interactive applications or ASP
pages to enable use of CDOSYS. In applications that use the SMTP or NNTP
drop-directory, the application or user must have permission to write into
that directory. When running an application that sends e-mail, the user
will require either write access to the pick-up directory, or read access
to the IIS metabase so the application can determine the SMTP port used for
sending mail.
==========================

So I think when we don¡¯t specify an smtpserver (or leave a required field
null), cdo tries to get configuration settings from outlook express or
from metabase. Administrator has access to metabase and thus operation
succeeds. Other users don¡¯t so they get sendusing configuration is invalid.

#816789 Read Access to the Everyone Group Is Removed After You Install
Exchange
http://support.microsoft.com/?id=816789

In addition, it is recommended that we always specify the definite
smtpserver names for when calling the System.Web.Mail components or CDO.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #4
fm
Sorry it took so long for me to get back to you. We will make it part of our
architecture to have a SMTP server set on the object.

"Steven Cheng[MSFT]" wrote:
Hi Fm,

Sorry for keeping you waiting. After some further consultant, I think the
following information maybe helpful:

http://msdn.microsoft.com/library/de...us/e2k3/e2k3/_
techsel_tech_1.asp
=========================
Run-Time Permissions
No special permissions are required to run interactive applications or ASP
pages to enable use of CDOSYS. In applications that use the SMTP or NNTP
drop-directory, the application or user must have permission to write into
that directory. When running an application that sends e-mail, the user
will require either write access to the pick-up directory, or read access
to the IIS metabase so the application can determine the SMTP port used for
sending mail.
==========================

So I think when we don¡¯t specify an smtpserver (or leave a required field
null), cdo tries to get configuration settings from outlook express or
from metabase. Administrator has access to metabase and thus operation
succeeds. Other users don¡¯t so they get sendusing configuration is invalid.

#816789 Read Access to the Everyone Group Is Removed After You Install
Exchange
http://support.microsoft.com/?id=816789

In addition, it is recommended that we always specify the definite
smtpserver names for when calling the System.Web.Mail components or CDO.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #5
Hi Fm,

Thanks for your followup.
Good luck!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it...
0
by: FabFreddy | last post by:
Hi, I get an "SendUsing" error with the code below. It appears when I send the email! Can anybody tell me what the problem is? Thx Dim mail As New MailMessage Mail.To = info@<domaintosent>
2
by: Brent | last post by:
Hi, I have a C# asp.net app that sent mail fine on server 2000 or win 2000, but now I moved it to our new 2003 box, and it's giving me "The 'SendUsing' configuration is invalid" This is the code...
0
by: chamling | last post by:
Hi, I got Error "The "SendUsing" configuration value is invalid." while using following code. MailMessage sendinfo= new MailMessage(); sendinfo.BodyFormat=MailFormat.Html;...
5
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
0
by: craigwfl | last post by:
This is really a lame error. I've spent two days scouring the internet for a proper solution to my problem. My issue is that I have an ASP.NET website using a VB.NET COM object to send emails (code...
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
10
by: dancer | last post by:
Using ASP.Net and Framework 1.1.4322 File works fine on my computer. On my host server, I get this message. The "SendUsing" configuration value is invalid. Description: An unhandled exception...
0
by: mkpoornima | last post by:
<% Dim myMail Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="poornima.kandhasamy@gmail.com" myMail.To="k_poornima2003@yahoo.co.in"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.