Select to view content in your preferred language

How do I change license at runtime?

80
2
Wednesday
ViktorSafar
Frequent Contributor

WPF app used by multiple users, they log in via Portal popup. I retrieve the license from Portal but then try to re-init ArcGIS for 2nd and further users, I get an exception:


Esri.ArcGISRuntime.ArcGISRuntimeException: 'License level fixed: License locked at the developer level'

ArcGISRuntimeEnvironment.Initialize(conf =>
{
    conf.UseLicense(licenseInfo.ToJson());
});

 

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

Once your app is licensed, you can only license "up", ie license for a higher-level license. There's no way to re-license the application without restarting.

0 Kudos
dotMorten_esri
Esri Notable Contributor

Btw the specific error you're getting should only happen if you've used features that requires a license before you attempted to license the application.

0 Kudos