ArcGis runtime + windows non-english username = fail ?

3348
6
Jump to solution
10-18-2014 06:07 PM
Labels (1)
AlexandrShutko
New Contributor

Hi. We are developing offline application based on arcgis runtime map engine (10.2.2) for WPF. We've made alpha version of application, bought a license pack and tried to deploy licensed application on our customer computers, but failed. After some investigation we found that our customer has Windows Active Directory with russian user names and Arcgis runtime service just hung trying to start because of this.

Is it possile to fix or workaround non-english names bug ? (our customer has no ability to rename users because of their internal rules).

0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

Where is the ArcGIS Runtime deployment (which includes the LocalServer)?

e.g. C:\MyApp\ArcGISRuntime10.2.3

What happens if you set the ArcGISRuntime.AppDataPath and ArcGISRuntime.TempPath properties to non-default values (this must be done before calling the ArcGISRuntime.Initialize() method)?

e.g.

ArcGISRuntime.AppDataPath = @"C:\MyApp\MyAppData";

ArcGISRuntime.TempPath = @"C:\MyApp\MyAppTemp";

ArcGISRuntime.SetLicense("xx,xx,xx,xx,xx");

ArcGISRuntime.Initialize();

Cheers

Mike

View solution in original post

0 Kudos
6 Replies
AlexandrShutko
New Contributor

So ESRI jast made and sold non-working software and thats all.

VERY GOOD company. Thanks alot.

0 Kudos
dotMorten_esri
Esri Notable Contributor

How are you authenticating the users? What kind of security are you using for the services you are trying to access?

0 Kudos
AlexandrShutko
New Contributor

This is local application, standart windows security. No special resources and services.

How to reproduce:

There are two users was added at windows 7: "Admin" and "Админ". Both was added to Administrators group.

I press ctrl-alt-del at windows prompt, enter "Admin" as user, password, wait desktop to load and run my program:

With english letters named windows user it works and I got in debug output:

"ArcGISRuntime: LocalServer starting

ArcGISRuntime: LocalServer started version: 10.2.2.3743 url: http://127.0.0.1:50000/zHbTBg/arcgis/rest/services"

Then I press logoff in windows, press change user and enter "Админ" in username textbox (this is russian letters), enter password, wait desktop to load and run program.

Program print

"ArcGISRuntime: LocalServer starting" in debug output and thats all. It continiously start and stop threads but nothing happens.

This program uses map package (created with arcmap) and geolocator package (by arcmap). It has

ArcGISRuntime.SetLicense("xx,xx,xx,xx,xx") call at initialization.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Where is the ArcGIS Runtime deployment (which includes the LocalServer)?

e.g. C:\MyApp\ArcGISRuntime10.2.3

What happens if you set the ArcGISRuntime.AppDataPath and ArcGISRuntime.TempPath properties to non-default values (this must be done before calling the ArcGISRuntime.Initialize() method)?

e.g.

ArcGISRuntime.AppDataPath = @"C:\MyApp\MyAppData";

ArcGISRuntime.TempPath = @"C:\MyApp\MyAppTemp";

ArcGISRuntime.SetLicense("xx,xx,xx,xx,xx");

ArcGISRuntime.Initialize();

Cheers

Mike

0 Kudos
DominiqueBroux
Esri Frequent Contributor

Hi Alexandr,

We have reproduced the issue that happens when the runtime TempPath and AppDataPath contains Unicode characters.

As suggested by Mike, setting the ArcGISRuntime.AppDataPath and ArcGISRuntime.TempPath properties to path without Unicode characters is the workaround for now:

ArcGISRuntime.AppDataPath = @"C:\MyApp\MyAppData";

ArcGISRuntime.TempPath = @"C:\MyApp\MyAppTemp";

We'll try to get this fixed in the next version.

Thanks for reporting this and sorry for the inconveniance.

/Dominique

AlexandrShutko
New Contributor

Thanks! This was usefull. It works!

0 Kudos