Hello,
I'm having problem with my Inventor Addin which loads correctly on some PCs and doesn't on others.
I have even situation that on one VM it works fine and on another cloned VM problem appears.
My addin is visible in the Addin list in Inventor but it is always unloaded.
I'm using Inventor 2013
Is there a way to debug such problem or see some log file where load error will be described?
Best regards,
Kamil
Solved! Go to Solution.
Solved by hawas82. Go to Solution.
Solved by adam.nagy. Go to Solution.
Hi,
Maybe some component your AddIn relies on cannot be found or for some reason your code inside the Activate method throws an exception.
If you could have Visual Studio on that PC as well to debug into the code when it's loading that could be useful - put a breakpoint at the beginning of the Activate method. If you are initializing some global variables it could be useful to move that inside the Activate method so that if anything goes wrong there, then that will happen after hitting your breakpoint.
If it's a missing component then the Process Monitor utility could be useful which can show what files and registry entries a given process (e.g. Inventor) is looking at and if it fails to find what it's searching for.
http://technet.microsoft.com/en-gb/sysinternals/bb896645.aspx
Cheers,
Hello Adam,
Thank you for the replay and your advice to use Process Monitor.
I have compared what is going on on PCs on which my Addin loads and on those where it doesn't and i have found differences.
I'm developing for Inventor 2013 which is deployed with Autodesk.Inventor.Interop.dll v17, but for some reason my solution has referenced v18.
It was working on those PCs which had in GAC v18 and didn't on those with v17 only.
After correcting references in my solution it works perfectly.
Best regards,
Kamil