POST
|
I am in the process of adding support for more map file formats in our application which uses ArcGISRuntime v100.0. I am currently trying to do this by starting a LocalServer and adding a LocalMapService to it. The idea is that a client can convert from a number of formats into a .mpk file in ArcMAP, which we can then add to our application by using the LocalServer. However, I don't have a lot of experience in using ArcMAP, so I am spending a lot of time trying to create som test data. Is there somewhere I can download some test data from, that could help me test my implementation of LocalMapService?
... View more
02-27-2017
02:04 AM
|
0
|
1
|
1183
|
POST
|
OK, It seems that I have the answer. In my application I have entered a license key belonging to a Basic License, and that prevented my from starting the LocalServer. I have currently removed the license key and the application is now running on a developer license - that enabled me to start the LocalServer. We are currently looking into upgrading our license, but until then I will continue to use the developer license while testing the LocalServer. Thankyou for your help! P.S.: An exception message more informative than "Server process exited unexpectedly during startup" would have been helpful 🙂
... View more
02-23-2017
11:35 PM
|
2
|
1
|
2333
|
POST
|
Thank you for that tip. It seems to have something to do with my license (although I don't know what the solution is yet). My application is built for x86, and I am running a 64 bit Windows 10. The log from LocalServerUtility looks like this: 2017-02-24 08:16:37,786 INFO rid= '' Server - Message : Log file path : "C:\Users\jsc.DGHOST\AppData\Local\Temp\ArcGISRuntimeLogs/arcgisruntime_16852.log" 2017-02-24 08:16:37,792 INFO rid= '' Server - Message : DataDir : "C:\Users\jsc.DGHOST\AppData\Local\Temp\arcgisruntime_16852" 2017-02-24 08:16:37,795 INFO rid= '' Server - Message : AppDataLocalDir : "C:\Users\JSC~1.DGH\AppData\Local\Temp\Local" 2017-02-24 08:16:37,796 INFO rid= '' Server - Message : AppDataRoamingDir : "C:\Users\JSC~1.DGH\AppData\Local\Temp\Roaming" 2017-02-24 08:16:37,797 INFO rid= '' Server - Message : AppDataCommonDir : "C:\Users\JSC~1.DGH\AppData\Local\Temp\Common" 2017-02-24 08:16:37,798 INFO rid= '' Server - Message : MyDocumentsDir : "C:\Users\JSC~1.DGH\AppData\Local\Temp\Documents" 2017-02-24 08:16:37,798 INFO rid= '' Server - Message : CrashDumpPath : "C:\Users\jsc.DGHOST\AppData\Local\Temp\ArcGISRuntimeErrorReports" 2017-02-24 08:16:37,799 INFO rid= '' Server - Message : Message : Attempt to use functionality that is not supported for the current license level
... View more
02-23-2017
11:18 PM
|
0
|
0
|
2333
|
POST
|
Yes, that is correct. ls.StartAsync() causes the exception. Setting AppDataPath to "C:\Users\jsc\AppData\Local\Temp" or not setting it at all yields the same result.
... View more
02-21-2017
11:12 PM
|
0
|
4
|
2333
|
POST
|
Yes of course, here it is. (log is a Log4Net instance for printing debug messages). The runtime environment has been initialized before this code is executed. LocalServer ls; LocalMapService lms; try { if (LocalServerEnvironment.CheckInstallValid()) { ls = LocalServer.Instance; ls.AppDataPath = @"C:\Users\jsc\Documents\ArcGIS"; log.Debug("LocalServer status: " + ls.Status.ToString()); await ls.StartAsync(); lms = new LocalMapService(@"C:\Users\jsc\Documents\ArcGIS\Test1.mpk"); log.Debug("Local Map Service Url: " + lms.Url); } }catch(Exception exc) { log.Debug("Failed to start local map service: " + exc.Message); }
... View more
02-21-2017
05:46 AM
|
0
|
6
|
2333
|
POST
|
Thank your for your help. I was not aware that the LocalServer had to be installed seperately. I can now get an instance of the LocalServer and attempt to start it. Unfortunately this results in an exception with the message "Server process exited unexpectedly during startup". Any idea what causes this?
... View more
02-21-2017
05:04 AM
|
0
|
8
|
2333
|
POST
|
I am trying to load an .mpk file onto the map by using a LocalMapService, but I am unable to start the LocalMapService (I get an error that says "Local server install path is not valid"). From what I have been able to find, this is because I am missing the Esri.ArcGISRuntime.Toolkit which has not yet been released for Esri.ArcGISRuntime v.100. Is that correct?
... View more
02-21-2017
12:20 AM
|
0
|
11
|
3512
|
Title | Kudos | Posted |
---|---|---|
2 | 02-23-2017 11:35 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|