Thanks for reply. The file is a 2007 format but still it returns an error
which I'm pasting below. Any ideas?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidCastException: Unable to cast COM object of type
'Microsoft.Office.OneNote.CApplication' to interface type
'Microsoft.Office.OneNote.IApplication'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{2DA16203-3F58-404F-839D-E4CDE7DD0DED}' failed due to the following error:
Interface not registered (Exception from HRESULT: 0x80040155).
at Microsoft.Office.OneNote.ApplicationServer..ctor()
at Microsoft.Office.OneNote.Application.get_Server()
at
Evolution.Office.OneNoteTools.OneNoteJournalNavigator.EnsureJournalNotebookExists()
at
Evolution.Office.OneNoteTools.OneNoteJournalNavigator.NavigateJournalPage(DateTime target)
at
Evolution.Office.OneNoteTools.OneNoteJournalNavigator.NavigateJournalPage()
at Evolution.Office.OneNoteTools.OneNoteJournalForm.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.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
OneNoteJournal
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
file:///C:/Program%20Files/Evolution%20Software%20Design/OneNote%20Daily%20Journal%20PowerToy/OneNoteJournal.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/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.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/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.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
OneNoteNavigator
Assembly Version: 1.0.2928.36843
Win32 Version: 1.0.2928.36843
CodeBase:
file:///C:/Program%20Files/Evolution%20Software%20Design/OneNote%20Daily%20Journal%20PowerToy/OneNoteNavigator.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/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.4927 (NetFXspW7.050727-4900)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.OneNote
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/Evolution%20Software%20Design/OneNote%20Daily%20Journal%20PowerToy/Interop.OneNote.DLL
----------------------------------------
OneNoteImporter
Assembly Version: 12.0.0.0
Win32 Version: 12.0.0.0
CodeBase:
file:///C:/Program%20Files/Evolution%20Software%20Design/OneNote%20Daily%20Journal%20PowerToy/OneNoteImporter.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.