iLogic Rule Compile Errors: External component has thrown an exception.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I just got my Inventor upgraded from 2018 Pro to 2021 Pro version, and this error kept pop up here and there to all of my ilogic codes at the same time randomly. My iLogic codes work very well on 2018 version, never get any error before, and just started happening on 2021. I don't know exactly what is going on, but to get away with it, I just close and reopen Inventor, and it seems running normally after that, but it's getting super annoying now to close inventor during a project.
See below for details.
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, Boolean fSkipIntegrityCheck, SecurityContextSource securityContextSource)
at System.Reflection.Assembly.Load(Byte[] rawAssembly)
at Autodesk.iLogic.Exec.AppDomExec.CompileCodeHere()
at Autodesk.iLogic.Exec.AppDomExec.CompileCodeInOtherDomain(AppDomain otherDomain, String codeName, String codeText, Boolean checkUnsafeCode)
at iLogic.RuleEvalContainer.ExecRuleCompile(String execRule)