This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to get error message from Exception on Innovator.ConsumeLicense

iteitelman - Tuesday, March 4, 2014 4:28 PM:

I use Innovator.ConsumeLicense in my .Net addin. It checks featureName and returns id if it is correct, otherwise the method throws exception with message:

"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Aras.Server.Licensing.FeatureNotFoundException: Aras.VplmToArasConnector
   at Aras.Server.Licensing.LicenseManager.ConsumeLicense(String featureName) in d:BuildsDaily5804RELS9-4InnovatorServersrcCoreLicensingLicenseManager.vb:line 270
   at Aras.Server.Licensing.LicenseManagerWebService.ConsumeLicense(String featureName) in d:BuildsDaily5804RELS9-4InnovatorServersrcCoreLicensingLicenseManagerWebService.vb:line 50
   --- End of inner exception stack trace ---"

Is it possible to get correct error message from this exception without parsing this error, getting error code (Aras.Server.Licensing.FeatureNotFoundException) from it, looking string with message for this error code?