On close outlook "the process can not be completed. At least one parameter is not valid"

Feb 4, 2013 at 2:46 PM
Hello,
after i close a new or edited Note and i will close outlook, then the error message shows: "the process can not be completed. At least one parameter is not valid" (original german error message: "Der Vorgang kann nicht abgeschlossen werden. Mindestens ein Parameterwert ist nicht gültig".

This problem only occur, when my ComPlugIn installed. Otherwise my Plugin works very fine.

Environment: Outlook 2003, .NET Framework 2.0, NETOffice 1.5.1.2

Idea?

thx, Daniel
Feb 4, 2013 at 3:14 PM
Edited Feb 4, 2013 at 3:15 PM
Ok,
i find the row, that makes trouble:
if (_outlookInspectors != null) {
     _outlookInspectors.NewInspectorEvent += new Inspectors_NewInspectorEventHandler(OutlookInspectorsNewInspectorEvent);
}
Here is the complete method:
void IDTExtensibility2.OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) {
   try {
      LateBindingApi.Core.Factory.Initialize();

      _outlookApplication = new Application(null, application);
      _outlookInspectors = _outlookApplication.Inspectors as Inspectors;
  
      if (_outlookInspectors != null) {
         _outlookInspectors.NewInspectorEvent += new Inspectors_NewInspectorEventHandler(OutlookInspectorsNewInspectorEvent);
      }
   }
   catch (Exception ex) {
      ...
   }
Feb 11, 2013 at 4:56 AM
Moin moin, have any an idea, why this occurs?

Or any idea for avoid this problem?

thank you!
Coordinator
Feb 11, 2013 at 7:48 AM
i do a test(.NET 2.0 Outlook 2007) and works fine.
This problem only occur, when my ComPlugIn installed. Otherwise my Plugin works very fine.
not sure what you mean....

the LateBindingApi.Core.Factory.Initialize() call is not supported in NetOffice 1.5.1.2 because it has been renamed to NetOffice.Core
are you sure to use 1.5.1.2 ?

Sebastian
Feb 13, 2013 at 4:16 AM
Edited Feb 15, 2013 at 6:50 AM
Good Morning Sebastian,
i don't find "Core" in the NetOffice Namespace. I have set a referenz to NetOffice (V 1.5.1.2), OfficeApi (V 1.5.1.2) and to outlookApi (V 1.5.1.2)

My problem only occurs with Outlook 2003.

the way, how to trace the problem:
  1. open outlook
  2. open notes and edit or create a new note
  3. when now you close outlook, then the following error shows: "the process can not be completed. At least one parameter is not valid" (original german error message: "Der Vorgang kann nicht abgeschlossen werden. Mindestens ein Parameterwert ist nicht gültig".
thank you, Daniel
Feb 19, 2013 at 5:43 AM
Good Morning,
alternative: Can you tell me, how i create a Button in the standardmenubar only, when i open a new/reply/forward Mailwindow?

thank you, Daniel