Select to view content in your preferred language

ReLicence Runtime SDK

2062
3
03-10-2014 08:24 AM
Labels (1)
NigelMacLucas1
Emerging Contributor
I have just updated my subscription and updated my licence using the licence viewer to get a code. I enter this code into application.xaml.cs

eg ArcGISRuntime.SetLicense("runtimebasic,101,xxx1234567890,dd-mon-YYYY,ABCDE1234567890");

After doing this I still get an error " License error with ArcGISruntime. The ArcGISRuntime SDK development licence has expired, please renew the developer license."

I can create a new projects, they don't have the error. Just projects that were using the old licence.

Any idea how to make my existing project use the new licence?
0 Kudos
3 Replies
BKuiper
Frequent Contributor
Most likely your line of code is not being hit (or too late) and is picking up the original (expired) license that you entered when installing the SDK.

Set a breakpoint at the SetLicense instruction and make sure it is being hit before any layers are being loaded.
0 Kudos
NigelMacLucas1
Emerging Contributor
Thanks for the reply.

I copied and pasted all the code into a new project and it runs fine without the licence warning!!

There's some other file in the porject holding the old licence data but I can't track it down.

Nigel
0 Kudos
NigelMacLucas1
Emerging Contributor
Found out what it was.

I had 10.1 and 10.2 installed. I had authorized to 10.2 but not 10.1 so when I created a new project in 10.2 all worked fine, but 10.1 code still wasn't activated.

Thanks for the help 🙂

Nigel
0 Kudos