CDO exception with Web.Mail

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 07/20/04


Date: Tue, 20 Jul 2004 10:48:33 -0400

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(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.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:line 378
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs 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(Message& 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.



Relevant Pages