A new issue with Add-in not loading

A new issue with Add-in not loading

RNDinov8r
Collaborator Collaborator
656 Views
3 Replies
Message 1 of 4

A new issue with Add-in not loading

RNDinov8r
Collaborator
Collaborator

So, about a year ago I posted this issue 

https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/add-in-loading-on-only-some-computer...

 

Well, now it seems to have reared it's ugly head again, and the original solution won't work on ANY machine. We have tried a number of things.

  1. Create new GUID for both the VB.net code and the Compiler code
  2. Compiling from a local drive to the network (I originally have posted from network to network).

these things don't seem to work. 

 

  1. The only work around we have found...and I can do, but would like to know why as it may point to the issue, is copy the project folder (s) to the local drive. Open in Visual Studio. Build the solution, Then open Inno Setup and Compile the executable to the desktop. this seems to resolve the issue. I am trying to have to install Visual Studio and Inno Setup on every workstation just to do a custom compile.

The weird thing is that no matter the method, it ALWAYS works on my work station.

0 Likes
657 Views
3 Replies
Replies (3)
Message 2 of 4

matt_jlt
Collaborator
Collaborator

without looking at all of your code / project i can only think of a few things off the top of my head.

 

Check the .Net version you are targeting and that it is installed on each machine.

Look to make sure the .dll file is not "locked / blocked" depending on how you are distributing the .dll files, they can be blocked by windows. Right click > properties > uncheck the "block" file property.

If you are using an installer, try and manually copy the files into the target directory, see if that helps. At least that way you can narrow it down if its the installer causing an issue.

As per your previous post, check you are targeting the correct / latest interop file and that your configuration file is also targeting the correct version.

0 Likes
Message 3 of 4

RNDinov8r
Collaborator
Collaborator

So, we did an experiment. We took the entire folder C:\Users\cmalone\AppData\Roaming\Autodesk\ApplicationPlugins\EasyButton 2022 V3.11

RNDinov8r_0-1659533936832.png

and zipped it. Then in an uninstalled state  we had another user unzip it into:

C:\Users\newusernamehere\AppData\Roaming\Autodesk\ApplicationPlugins

 

At this point, upon firing up inventor. Now the Addin shows up. however, we a weired error upon running it.

 

So, without uninstalling we had the new user run the install executable. Not it runs without an issue. 

 

Going back and looking at that Plug-in folder we could see that for whatever reason, the .dll  and .addin file itself didn't change. It has remained at 7/29/22 date. All other files appear to over write to todays date.

0 Likes
Message 4 of 4

matt_jlt
Collaborator
Collaborator

I know of someone else that had issues getting their addin to run on some machines when they used those folders.

Can i suggest trying to use this folder instead. This is where i put all of mine and never have any issues

 

"C:\ProgramData\Autodesk\Inventor Addins"

 

If the folder doesnt exist, you can just create it. It works for all inventor versions.

Also, you didnt mention the weird error.

There may be something in the code / project setup that is causing some problems, but again. without any details or files its very hard to work it out.

0 Likes