Connectivity.InventorAddin.EdmAddin Error in Inventor 2021

Connectivity.InventorAddin.EdmAddin Error in Inventor 2021

tfrohe_LSI
Advocate Advocate
395 Views
2 Replies
Message 1 of 3

Connectivity.InventorAddin.EdmAddin Error in Inventor 2021

tfrohe_LSI
Advocate
Advocate

I have an Inventor 2021 add-in that does various things for my company. There are a couple buttons that do things with Vault. Recently, and I can't put my finger on exactly when, the Vault specific features have stopped working. I am getting the following error:

 

 

System.IO.FileLoadException: 'Could not load file or assembly 'Connectivity.InventorAddin.EdmAddin, Version=26.2.24.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'

 

 

When calling the following Sub

 

    Private Sub LoginToVault()
        Dim security As EDM = EDM.Instance
        If Not security.IsSignedIn() Then
            g_inventorApplication.StatusBarText = "Logging into Vault"
            RunLineCommand("LoginCmdIntName")
        End If

        m_conn = security.VaultConnection
        g_inventorApplication.StatusBarText = ""
    End Sub

 

The error is happening on the line that calls this Sub.

 

I have a reference setup in my project for Connectivity.InventorAddin.EdmAddin located at C:\Program Files\Autodesk\Inventor 2021\Bin\Connectivity.InventorAddin.EdmAddin.dll

 

We are actually using Inventor 2021. Please advise. Thank you.

0 Likes
Accepted solutions (1)
396 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

a quick Google search led me to believe that it has to do something with signed or unsigned assemblies. I have never dealt with this kind of problem but maybe this can help you:

https://stackoverflow.com/questions/290980/error-a-strongly-named-assembly-is-required

 

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

tfrohe_LSI
Advocate
Advocate

The problem was, I was signing the assembly. I usually do not do that. I was experimenting and didn't put it together in my head that that was causing a problem. Thank you for pointing me in the right direction.

0 Likes