Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Entitlement API and user email address

msarnaot
Community Visitor

Entitlement API and user email address

msarnaot
Community Visitor
Community Visitor

I'm looking to use the inventor entitlement API in my C# addin. I followed the instructions pointed here to get the user info of the logged in user. However I keep getting an error saying:

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

 

Any idea why this is happening?

Is there any other way to get a deviceId and user email address of the person using the addin outside entitlement API?

0 Likes
Reply
311 Views
2 Replies
Replies (2)

Michael.Navara
Advisor
Advisor

I tested it and everything works as expected.

Complete sample for Inventor 2023 is in attachment.

 

0 Likes

abdullah_elq
Advocate
Advocate

I don't know if this will be of any help, but I was able to get the user email address through iLogic via:

AddReference "AddinNETFramework.AdWebServicesWrapper.dll"
Imports Autodesk.WebServices

Dim webServiceMgr As CWebServicesManager = New CWebServicesManager()

ThisApplication.login()

webServiceMgr.Initialize()

Dim email As String = "" 
webServiceMgr.GetUserEmail(email)
MessageBox.Show(email)