AnsweredAssumed Answered

"Invalid license provided" exception when deploying generated test license

Question asked by mvandillen on Aug 23, 2012
Latest reply on Aug 30, 2012 by MBranscomb-esristaff

I am developing a WPF application using the ArcGIS Runtime SDK for WPF. I am using a developer license from the EDN.

I have followed your online instructions for deploying to a test environment. I generated the ArcGISRuntime1.0 folder (including the Local service option) and generated a test license using the License Viewer. I have put the generated line of C# code in the constructor of my module.

When running the application on a test system (or even on my development system), I get the following exception when opening a local mpk feature layer:

ESRI.ArcGIS.Client.Local.LocalServerException: Invalid license provided
at ESRI.ArcGIS.Client.Local.LocalService.FailStart(Exception error)
at ESRI.ArcGIS.Client.Local.LocalService.ContinueStartService(QueryParameters serviceSpecificParams)
at ESRI.ArcGIS.Client.Local.LocalService.StartServiceInternal(QueryParameters serviceSpecificParams)
at ESRI.ArcGIS.Client.Local.LocalMapService.StartMapServiceInternal(Boolean editable)
at ESRI.ArcGIS.Client.Local.LocalFeatureService.Start()
at ESRI.ArcGIS.Client.Local.LocalFeatureService.GetServiceInternal(String path, Nullable`1 maxRecords)
at ESRI.ArcGIS.Client.Local.LocalFeatureService.GetService(String path)

Opening online layers works fine.

Please advise how to fix this.