Hi,When your EDN subscriber requests a Basic Deployment license from the EDN Customer Care site they should receive an authorization number (e.g. ABC123456789).You should then run number through the Software Authorization Wizard accessed from the start menu under ArcGIS > Runtime SDK 1.0 for WPF > Runtime Tools. The Software Auth. Wizard will communicate with the esri servers online and generate the appropriate licenses which are added to a local store on your machine. You then access those as license strings from the License Viewer (under the same location in the Start Menu). The reason for the License Viewer step is that it conveniently creates the correct license string and even the syntax for the scenario you choose (i.e. test/deploy, basic/standard/standard+extensions, C#/VB.NET). For example the output from the license viewer could be something like: ArcGISRuntime.SetLicense("runtimebasic,101,abc123456789,FGHGJFKDJGGHDJDKSJ");The SetLicense call needs to be made before any ArcGIS Runtime functionality is accessed. If you look at the ArcGIS Runtime SDK for WPF project template in Visual Studio you'll see we suggest setting the license in the Application class. Once you've called SetLicense you should then call the Initialize() method on the ArcGISRuntime class. This will throw an exception if the license is invalid for any reason. Deployment licenses do not timeout and therefore if it's valid at the outset it should remain valid. An exception is therefore unlikely, but of course should always be catered for.e.g. This code will simply pop up a message box then close the app if the license is invalid.
// Initialize the ArcGIS Runtime before any components are created.
try
{
ArcGISRuntime.SetLicense("runtimebasic,101,abc123456789,FGHGJFKDJGGHDJDKSJ");
ArcGISRuntime.Initialize();
}
catch (Exception ex)
{
// Alert the user (you may not want to display the actual error message to the user)
MessageBox.Show(ex.ToString());
// Exit application
this.Shutdown();
}
CheersMike