Entitlement API and user email address

Entitlement API and user email address

msarnaot
Community Visitor Community Visitor
380 Views
2 Replies
Message 1 of 3

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
381 Views
2 Replies
Replies (2)
Message 2 of 3

Michael.Navara
Advisor
Advisor

I tested it and everything works as expected.

Complete sample for Inventor 2023 is in attachment.

 

0 Likes
Message 3 of 3

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)