By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

CDO exception with Web.Mail

P: n/a
I get the following exception only on one system (dev system) and not on any
others... what could cause this?! I can access the SMTP server just fine in
E-Mail applications on the machine...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
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 (0x80040211): The message could
not be sent to the SMTP server. The transport error code was 0x80040217. The
server response was not available

--- 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(O bject obj, String
methodName, Object[] args)
--- End of inner exception stack trace ---
at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args)
at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.CdoSysHelper.Send(String from, String to, String
subject, String messageText)
at System.Web.Mail.SmtpMail.Send(String from, String to, String subject,
String messageText)
at BDBSDK.frmAddUser.btnProcess_Click(Object sender, EventArgs e) in
C:\Reschini\Source\RSMN\RSMNAdmin\frmAddUser.vb:li ne 378
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
Benefits
Assembly Version: 1.0.64.17215
Win32 Version: 1.0.64.17215
CodeBase: file:///C:/Reschini/Builds/Benefits/Debug/Benefits.exe
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
bdb
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///C:/Reschini/Builds/Benefits/Debug/bdb.DLL
----------------------------------------
acclListBar
Assembly Version: 1.0.1326.27884
Win32 Version: 1.0.1326.27884
CodeBase: file:///C:/Reschini/Builds/Benefits/Debug/acclListBar.DLL
----------------------------------------
SandBar
Assembly Version: 1.0.11.0
Win32 Version: 1.0.11.0
CodeBase: file:///C:/Reschini/Builds/Benefits/Debug/SandBar.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
----------------------------------------
Accounts
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/accounts.dll
----------------------------------------
Administration
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/administration.dll
----------------------------------------
AssignedIDNumberEditor
Assembly Version: 1.0.1662.17216
Win32 Version: 1.0.1662.17216
CodeBase:
file:///c:/reschini/builds/benefits/debug/assignedidnumbereditor.dll
----------------------------------------
bcImportFrom
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/bcimportfrom.dll
----------------------------------------
CarriersEditor
Assembly Version: 1.0.1662.17216
Win32 Version: 1.0.1662.17216
CodeBase: file:///c:/reschini/builds/benefits/debug/carrierseditor.dll
----------------------------------------
ConfidentialityAgreements
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase:
file:///c:/reschini/builds/benefits/debug/confidentialityagreements.dll
----------------------------------------
Coverages
Assembly Version: 1.0.1662.17216
Win32 Version: 1.0.1662.17216
CodeBase: file:///c:/reschini/builds/benefits/debug/coverages.dll
----------------------------------------
JournalPlugin
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/journalplugin.dll
----------------------------------------
PeoplePlugin
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/peopleplugin.dll
----------------------------------------
RSMN
Assembly Version: 1.0.1662.17216
Win32 Version: 1.0.1662.17216
CodeBase: file:///c:/reschini/builds/benefits/debug/rsmn.dll
----------------------------------------
RSMNAdmin
Assembly Version: 1.0.1662.17470
Win32 Version: 1.0.1662.17470
CodeBase: file:///c:/reschini/builds/benefits/debug/rsmnadmin.dll
----------------------------------------
Statistics
Assembly Version: 1.0.1662.17215
Win32 Version: 1.0.1662.17215
CodeBase: file:///c:/reschini/builds/benefits/debug/statistics.dll
----------------------------------------
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
I get the following exception only on one system (dev system) and not on any
others... what could cause this?! I can access the SMTP server just fine in
E-Mail applications on the machine...


Did you already take a look at <URL:http://www.systemwebmail.net/>?

:-)

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2

P: n/a
Hi Brian,

You may try to run the sample code below to see if the problem persists,
also you may try to send mail using the outlook express directly with the
SMTP server you use in your code to see if we can send the mail
successfully.

How To Send E-mail Programmatically with System.Web.Mail and Visual Basic
.NET (314201)
http://support.microsoft.com/default...B;EN-US;314201

Best regards,

Peter Huang
Microsoft Online Partner Support

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

Nov 20 '05 #3

P: n/a
strangely it turned out after digging throught stuff... Active directory had
permissions for my one workstation totaly messed up (although they should of
been completely the same)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
I get the following exception only on one system (dev system) and not on any others... what could cause this?! I can access the SMTP server just fine in E-Mail applications on the machine...


Did you already take a look at <URL:http://www.systemwebmail.net/>?

:-)

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #4

P: n/a
Problem has been corrected, thanks

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:4g**************@cpmsftngxa06.phx.gbl...
Hi Brian,

You may try to run the sample code below to see if the problem persists,
also you may try to send mail using the outlook express directly with the
SMTP server you use in your code to see if we can send the mail
successfully.

How To Send E-mail Programmatically with System.Web.Mail and Visual Basic
NET (314201)
http://support.microsoft.com/default...B;EN-US;314201

Best regards,

Peter Huang
Microsoft Online Partner Support

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

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.