Addin loads when debugging in VS but not regularly

Addin loads when debugging in VS but not regularly

basautomationservices
Advocate Advocate
155 Views
2 Replies
Message 1 of 3

Addin loads when debugging in VS but not regularly

basautomationservices
Advocate
Advocate

Hi all,

 

I have a problem that I have not encountered before. I have an addin that will load and function when I'm debugging in Visual Studio, but it does not load when I'm not debugging. 

 

When running inventor regularly, the add-in does not load. When I check loaded in the add-in manager, it unloads again without any errors..

 

Any ideas?

 

TIA

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


0 Likes
156 Views
2 Replies
Replies (2)
Message 2 of 3

FINET_Laurent
Advisor
Advisor

Hello @basautomationservices,

 

I've encountered this behaviour once. For my case , this was related to using incorrect references for my add-in project.


Basicaly I was developing the add-in on my computer with a certain Autodesk.Inventor.Interop version. 
When I deployed to other computers, it had the same effect. The issue was they didn't have the specific version of the Autodesk.Inventor.Interop dll I was using on MY computer. 

 

To fix it I just set all the references local copy to True, so any computer has it. This just paste the reference to your bin project so it always sticks to the add-in.

FINET_Laurent_0-1706871398804.png

 

I recommand having a look at all the references of your project to see if they are set up correctly.

 

Kind regards,

FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

0 Likes
Message 3 of 3

basautomationservices
Advocate
Advocate

Hi @FINET_Laurent ,

 

I remembered a long time ago I had a problem because I was using multiple different versions of one single (of my own) DLL, this I checked.

 

What you're saying could be the problem, I've recently been switching between 2023/2024 versions.

Will have a look later to see if I can find it. 

 

Thanks for pointing me in this direction, will post the outcome here. 

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro