Hiya!
I'm getting the same error that Saurgarg was getting:
The type initializer for 'JrOnomNamespace.OnenoteHierarchy' threw an exception.
And I do have .Net 4 installed (client profile and extended, version 4.0.30319), MS Office v14.0.4734.1000 (64-bit) and using local files. Could it be that I'm using the 64-bit version?
Thanks!
Rob
-Mottie
All I know about the 64-bit version of Office is that it seems to cause all sorts of problems ;) Let me put it this way: I would not at all be surprised if this turns out to be the cause, but I have no idea why this should be so. I am going to try and find some time to make a version that catches the exception and does something more useful with it, but time is scarce ... Meanwhile, there are now also 2010 versions of the Sort Sections powertoy (
http://blogs.msdn.com/b/johnguin/archive/2010/08/25/updating-the-sort-sections-powertoy-for-onenote-2010.aspx) and the Sort Pages powertoy (
http://blogs.msdn.com/b/johnguin/archive/2011/01/24/updating-the-page-sorter-powertoy-for-onenote-2010.aspx#10125507). Maybe those will do for your needs.
Jan Roelof