The type initializer for 'QuickstartiLogicLibrary.QuickstartiLogicLib' threw an exception

The type initializer for 'QuickstartiLogicLibrary.QuickstartiLogicLib' threw an exception

vas_ampelas
Contributor Contributor
628 Views
7 Replies
Message 1 of 8

The type initializer for 'QuickstartiLogicLibrary.QuickstartiLogicLib' threw an exception

vas_ampelas
Contributor
Contributor

Hi,

 

We have an intermittent issue with our iLogic that uses QuickstartiLogicLibrary to check if file is Checked-out or not... The error message above is thrown to only a small number of PCs, for the majority of PC it is working as expected.

 

The problem is that we need this to work for every user, as it is used in an event trigger rule that is in all our CAD Model Templates.

 

(Please find attached iLogic rule and TXT that show the full exception.)

 

The error message suggest that some object is not set...

I tried come changes to the line 37 in the source code as per below, but no joy...

 

Some help would be greatly appreciated.

 

Best Regards,

Vas Ampelas

 

 

0 Likes
629 Views
7 Replies
Replies (7)
Message 2 of 8

Markus.Koechl
Autodesk
Autodesk

Hi @vas_ampelas , would you mind attaching the code, please? Did you check the update level of the clients working vs. clients failing?



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 8

jclements7LNR5
Participant
Participant

Did you find a solution for this issue?  I am seeing the same thing.

0 Likes
Message 4 of 8

Markus.Koechl
Autodesk
Autodesk

The error likely is caused by missing DLLs on the machines. Note - Inventor 2024 implemented iLogic-Vault as a default, and there is no risk of missing the Quickstart library or the additional required ones from the SDK, depending on what you use.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 5 of 8

jclements7LNR5
Participant
Participant

@Markus.Koechl We are using Inventor 2025 and Vault Basic 2025.  The default quickstart library will not run on basic.  We are also all pulling the QuickstartiLogicLibrary.dll from a shared/common location (same as the shared ilogic routines)  I've checked vault and inventor versions on working and non-working machines and they are all the most recent.

0 Likes
Message 6 of 8

Markus.Koechl
Autodesk
Autodesk

@jclements7LNR5. OK, I got your point. So, you had to compile your 2025 version of the QuickstartiLogicLibrary; did you also migrate the code to .NET8? This is what Inventor iLogic 2025 requires.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 7 of 8

jclements7LNR5
Participant
Participant

I don't have the expertise to modify a .dll file to .NET8.  Why would it need migrated if it is working on some computers already?

0 Likes
Message 8 of 8

Markus.Koechl
Autodesk
Autodesk

The error "Type initializer threw an exception" is difficult to investigate without the individual environment. Computers that don't throw this exception may have the legacy initializer available. To make it robust, a recompilation with sources that match the target release of Inventor is the best option. At this point, I need to remember to read the QuickstartiLogicLibrary's legal disclaimer: to use this application in production environments requires an individual compilation of the source code anyway. The released binaries are for evaluation only.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes