473,770 Members | 4,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SendUsing Configuration is Invalid

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 below). This
sporadically works to send emails, but mostly gets the error mentioned.
Once an email does go out then the server sends emails fine until IIS
is reset.

I found this "SendUsing Configuration is Invalid" error attempting to
be addressed multiple times. The main solution is to make sure you are
assigning a server name to the SMTPMail.SMTPSe rver variable. This is
not the issue in my case. I have always assigned the Exchange server
via web.config and just recently added the three lines for oMsg.Fields
but that did not solve the problem either.

The only thing that addressed my issue for this is to install SMTP on
the web server. This makes no sense whatsoever! Emails would sometimes
go fine without the Fields lines and just an Exchange server. But once
SMTP is installed for IIS then it seems to allow all emails to go
through consistenly.

oMsg = New MailMessage
oMsg.From = MailFrom
oMsg.To = MailTo
oMsg.Subject = Subject
oMsg.BodyFormat = MailFormat.Html
oMsg.Body = Body
oMsg.Cc = strCC

oMsg.Fields("ht tp://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= intMailServerPo rt

oMsg.Fields("ht tp://schemas.microso ft.com/cdo/configuration/smtpserver")
= strMailServerNa me

oMsg.Fields("ht tp://schemas.microso ft.com/cdo/configuration/sendusing")
= 2

SmtpMail.SmtpSe rver = strMailServerNa me
If (MailTo.Trim.Le ngth > 0) Then SmtpMail.Send(o Msg)

For the moment, I think my situation is resolved in a less than
desirable fashion. I would love it if someone could tell me what I did
wrong or how to better resolve this issue.

Thanks.
Craig

May 23 '06 #1
0 1648

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

Similar topics

0
4615
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 executes both on my server or on the server of the .NET service provider. I'm obviously missing something very basic and I'm hoping one of you can point out my error. Thank you for your assistance. Brian
0
1324
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
4596
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 now... MailMessage mail = new MailMessage(); mail.From = from;
0
1183
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; sendinfo.Body="bodyvalue"; sendinfo.To="emailadd@mydomain"; sendinfo.From="emailadd@mydomain"; sendinfo.Subject="Preview Newsletter"; SmtpMail.Send(sendinfo);
5
2461
by: fm | last post by:
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
5
15137
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 stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.
1
6718
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 System.Web.HttpCookie Imports System.Web.Mail Imports System.Web.Mail.SmtpMail
10
4915
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 occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing"...
3
3112
by: =?Utf-8?B?T2xpdmllciBNQVRST1Q=?= | last post by:
I'm trying to run an ASP.NET 2.0 web site on Windows Server 2008 RC1. I encounter a server error : HTTP 500.19 - Configuration data is invalid IIS7 claims that the <appSettingssection in web.config is invalid. The management tools are also unable to parse the configuration. The same web site, with the same configuration, is running perfectly on Vista. Is it tied to Windows Server 2008 RC1 ? Any help appreciated.
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.