Menu

#3 EmailLogger(str,str,str) throws ArgumentNullException

v1.1
open
7
2003-11-12
2003-11-11
No

Using v1.1 of nspring.dll.

I'm attempting to instantiate EmailLogger using the
constructor:
public EmailLogger(
string _serverAddress,
string _from,
string _to
);

I know I'm passing valid parameters, but I keep getting
the following exception:

Unhandled Exception: System.ArgumentNullException:
Value cannot be null.
at NSpring.Logging.EventFormatters.
PatternEventFormatter..ctor(String _pattern)
at NSpring.Logging.Loggers.EmailTemplate.
set_Body(String value)
at NSpring.Logging.Loggers.EmailTemplate..ctor(String
_from, String _to, String _cc, String _bcc, String
_subject, String _body)
at NSpring.Logging.Loggers.EmailLogger..ctor(String
_serverAddress, String _from, String _to)
at SchedulerService.TraceLog.setupLogger() in c:
\projects\schedulerservice\servicecore\tracelog.cs:line
60
at SchedulerService.TraceLog.Verbose(String
VerboseMessage, String ClassName, String MethodName)
in c:\projects\schedulerservice\servicecore\tracelog.cs:
line 113
at ReportsSalesUpdatePlugin.Plugin.SchedulerService.
IServices.Execute() in c:
\projects\schedulerservice\reportssalesupdateplugin\repor
tssalesupdateplugin.cs:line 52
at PluginTester.Tester.btnExecute_Click(Object sender,
EventArgs e) in c:
\projects\schedulerservice\plugintester\tester.cs:line 311
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.
DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.
DispatchMessageW(MSG& msg)
at System.Windows.Forms.ComponentManager.System.
Windows.Forms.
UnsafeNativeMethods+IMsoComponentManager.
FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.
RunMessageLoopInner(Int32 reason, ApplicationContext
context)
at System.Windows.Forms.ThreadContext.
RunMessageLoop(Int32 reason, ApplicationContext
context)
at System.Windows.Forms.Application.Run(Form
mainForm)
at PluginTester.Tester.Main() in c:
\projects\schedulerservice\plugintester\tester.cs:line 53
The program '[2440] PluginTester.exe' has exited with
code 0 (0x0).

Looks like the pattern is getting lost somewhere. Is this a
known bug, or a new issue? (or maybe just user error :)

Discussion

  • Jeffrey Varszegi

    • assigned_to: nobody --> jvarszegi
    • status: open --> pending
     
  • Jeffrey Varszegi

    • priority: 5 --> 7
    • status: pending --> open
     
  • Jeffrey Varszegi

    Logged In: YES
    user_id=835109

    Sorry for the delay. It's a known bug, but thanks very much
    for submitting the information (I'd love to hear about anything
    else you find). Look for a mini-version release sometime
    toward the end of the week, hopefully. It's got a fix for this
    and another smaller bug that was found, some performance
    enhancements, and the new configuration code. If you're
    signed up for email notifications, you will get an email when
    the code's released. -Jeff

     
  • Neils Christoffersen

    Logged In: YES
    user_id=120448

    I figured as much.

    Thanks for the quick reply. I'm looking forward to the new
    release.

     

Log in to post a comment.