2018 Style Library Manager Failure JIT Debugging .NET Framework

2018 Style Library Manager Failure JIT Debugging .NET Framework

Anonymous
Not applicable
4,357 Views
13 Replies
Message 1 of 14

2018 Style Library Manager Failure JIT Debugging .NET Framework

Anonymous
Not applicable

I've just installed IV2018, so I need to import some dimension styles from my 2017 Design Data folder. So fire up the ever-problematic Style Library Manager to do a migrate and then transfer my few dim styles to the standard Style Library that ships with 2018.

 

When I launch 2018 Style Library Manager, it gives an error (see error message stack below and screen shot).  

 

 

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Autodesk.AutodeskInventor.StyleManager.StyleLibrary.DetermineDifferences(String& styleCollectionInternalName, StyleLibrary& firstStyleLibrary, StyleLibrary& secondStyleLibrary)
   at StyleLibraryManager.StyleLibraryManager.set_SelectedStyleCollection(StyleCollection Value)
   at StyleLibraryManager.StyleLibraryManager.StyleCollectionListView_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

2018-01-04_15-44-34.png

 

 

 

I can click the Continue button and it will proceed but the UI is still wonky and it giver another error whenever I mouse over the dropdown control to select the old Style Library I want to select in the "Style Library 1" panel.

 

kelly.young has edited your subject line for clarity: 2018 Style Library Manager failure

0 Likes
4,358 Views
13 Replies
Replies (13)
Message 2 of 14

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

We would need more in the JIT message.  There should be listed the faulty app or interface.  Can you check?

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 3 of 14

Anonymous
Not applicable

>> There should be listed the faulty app or interface.

 

The App is the Style Library Manager.

 

I can see from the message text a reference to a method call at:

 

Autodesk.AutodeskInventor.StyleManager.StyleLibrary.DetermineDifferences(String& styleCollectionInternalName, StyleLibrary& firstStyleLibrary, StyleLibrary& secondStyleLibrary)

 

So, you see the failure happened at the attempt to call the method call DetermineDifferences(), but that could not happen because one of the object references yielded the classic "Object reference not set to an instance of an object." error.

 

Anyway, here is the entire contents of the text in the error message, but I don't think it adds anything helpful, as all it shows is "Loaded Assemblies" which is just a list of .Net assemblies that are active in the call stack or something. I see some technical instructions about a .config and JIT debugging...  I'm a little bit familiar with .Net debugging from my work in .Net and C#, and I also have Visual Studio 2017 installed on my machine, so I created a "Style Library Manager.exe.config" in the same folder as "Style Manager Library.exe.", and added the required xml code to it, then I re-ran the app but it still only give me the standard catch-all error handler that I showed you so far.  I can dig deeper, but will need some some instructions from your developer folks to get that low level.

 

I even attached the Visual Studio debugger directly to the process which was running the app and it still does not pick up the stack trace.

 

 

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Autodesk.AutodeskInventor.StyleManager.StyleLibrary.DetermineDifferences(String& styleCollectionInternalName, StyleLibrary& firstStyleLibrary, StyleLibrary& secondStyleLibrary)
   at StyleLibraryManager.StyleLibraryManager.set_SelectedStyleCollection(StyleCollection Value)
   at StyleLibraryManager.StyleLibraryManager.StyleCollectionListView_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2115.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Style Library Manager
    Assembly Version: 22.20.22700.0
    Win32 Version: 22.20.22700.0
    CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202018/Bin/Style%20Library%20Manager.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2117.0 built by: NET47REL1LAST
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
StyleManager
    Assembly Version: 22.20.22700.0
    Win32 Version: 22.20.22700.0
    CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202018/Bin/StyleManager.DLL
----------------------------------------
Autodesk.Inventor.Interop
    Assembly Version: 22.2.0.0
    Win32 Version: 22.2.0.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Autodesk.Inventor.Interop/v4.0_22.2.0.0__d84147f8b4276564/Autodesk.Inventor.Interop.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
IPJPROJECTLISTLib
    Assembly Version: 22.20.22700.0
    Win32 Version: 22.20.22700.0
    CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202018/Bin/IPJPROJECTLISTLib.DLL
----------------------------------------
IPJPROJECTTREELib
    Assembly Version: 22.20.22700.0
    Win32 Version: 22.20.22700.0
    CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202018/Bin/IPJPROJECTTREELib.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.


 

0 Likes
Message 4 of 14

johnsonshiue
Community Manager
Community Manager

Hi! The behavior does sound like .Net related. It is possible the .Net was not properly installed. Could you close Inventor 2018 and try Repair Install? Go to Control Panel -> Programs and Features -> find Autodesk Inventor Professional 2018 -> right-click -> Uninstall/Change -> Repair Install. Pleas report back with your findings.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 5 of 14

MCCDRAFT
Explorer
Explorer

I'm having the same issue. Tried the repair option reinstall which didn't fix the problem.  Created support case with Autodesk.

0 Likes
Message 6 of 14

johnsonshiue
Community Manager
Community Manager

Hi! Are you seeing the exact error message? What Windows are you on?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 7 of 14

Xun.Zhang
Alumni
Alumni

Hello,

Are you running with administrator? if not, could you help try to run as administrator in the context menu when right click program?

Thanks!


Xun
0 Likes
Message 8 of 14

MCCDRAFT
Explorer
Explorer
I currently have global admin rights in my company and my local computer. I also tried running Inventor & Style Library Manager as administrator as instructed. There were no changes to the issues I'm having in inventor, and the style library manager will not even load when selecting "run as Administrator"


0 Likes
Message 9 of 14

DannyHubbard
Autodesk
Autodesk

Can you try doing a repair or reinstall of the Microsoft .NET Framework 4.5 or 4.6 depending on what you have installed, then reboot and try Style Manager again.

 

Thanks,

Danny



Danny Hubbard
QA Analyst
Autodesk, Inc.
0 Likes
Message 10 of 14

MCCDRAFT
Explorer
Explorer
Microsoft .NET framework is not even showing up on my program list... Looks like .NET 4.7 is available now, should I download/install it?



[cid:image001.png@01D3CFEC.599D9F50]






0 Likes
Message 11 of 14

DannyHubbard
Autodesk
Autodesk

 

Depending on the version on Windows you are using it probably shows up under the Turn Windows Features On or Off list, but yes installing .NET 4.7 should also help.

 

Thanks,

Danny



Danny Hubbard
QA Analyst
Autodesk, Inc.
Message 12 of 14

MCCDRAFT
Explorer
Explorer
Just installed .NET 4.7.1, rebooted system, and still getting the same error.


0 Likes
Message 13 of 14

DannyHubbard
Autodesk
Autodesk

 

Only other thing I can think to try is the Microsoft .NET Repair Tools to see if it can fix the .NET installs.

https://www.microsoft.com/en-us/download/details.aspx?id=30135

 

Thanks,

Danny



Danny Hubbard
QA Analyst
Autodesk, Inc.
0 Likes
Message 14 of 14

MCCDRAFT
Explorer
Explorer
I tried that too, didn't resolve the issue. I created a support case with Autodesk (Case ID: 14095645) 4/6/18 morning and still no response from them either.


0 Likes