locked
just-in-time (JIT) debugging instead of this dialog box. RRS feed

  • 問題

  • Greetings!!
     
    I am getting the error message after installing the application after some time(one month) .
    In my application I am saving some information into data base and updating the same information into database.I am getting this error when i update the information into database.
     
     
    It is saying that
    "Unhandled exception has occured in you application.if you click continue,the application will ingore this error and attempt to continue.If you click Quit,the application will close immediatley.
     
    A recipient must be specified.
     
    with the buttons continue and quit. and details.if click continue button my information is updating into database.if I click details button then the below stated message is displayed.
    Can any one come across same type of problem if any one know the resolution .please help to to resolve this issue.it is under top priority for mw.Any answer will be much appriceated.
     
     
     
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
     
    ************** Exception Text **************
    System.InvalidOperationException: A recipient must be specified.
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at NCRNTrackerApps.NCRNTracker.sendSttausEmail(String strstatus)
       at NCRNTrackerApps.NCRNTracker.cmdSaveNCRN_Click(Object sender, EventArgs e)
       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.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     

    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    NCRNTrackerApps
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///M:/Program%20Files/NCRNTracker/NCRNTracker.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Transactions
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///M:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
     
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (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 computer
    rather than be handled by this dialog box.
     
     
    Thanks
    Priya

     

    2009年1月27日 22:33

解答

  • Hi Harirengarajan

    Do you think it is something to do with your method
    System.Net.Mail.SmtpClient.Send(MailMessage message)
    sendSttausEmail?

    Maybe you can try to place a Try and catch statement surround these two method / inside the button click event and see where it cause the problem.

    Please forgive me if I miss understood you.

    Hpe this can help.
    2009年1月28日 8:27

所有回覆

  • Hi Harirengarajan

    Do you think it is something to do with your method
    System.Net.Mail.SmtpClient.Send(MailMessage message)
    sendSttausEmail?

    Maybe you can try to place a Try and catch statement surround these two method / inside the button click event and see where it cause the problem.

    Please forgive me if I miss understood you.

    Hpe this can help.
    2009年1月28日 8:27
  • Thank you for your reply.Yes you are correct I found my email is sending with out recipient.That is y the error was coming and I corrected the problem.Thanks a lot for your reply.

    Thanks

    Priya

     

    2009年1月28日 15:41