ArcGISRuntimeEnvironment setInstallDirectory

582
2
03-27-2018 04:42 PM
KayugaSolution
New Contributor

Our program links with and uses the ArcGIS Runtime SDK 100.2.  We use ClickOnce for the installation.  One of our customers cannot run our program.  The following is an excerpt from a trace he sent us.

Application: IRIS.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.DllNotFoundException

at RuntimeCoreNet.GeneratedWrappers.CoreArcGISRuntimeEnvironment.CoreRT_ArcGISRuntimeEnvironment_setInstallDirectory(Byte[], IntPtr ByRef)

at RuntimeCoreNet.GeneratedWrappers.CoreArcGISRuntimeEnvironment.SetInstallDirectory(System.String)

at Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.TryInitialize()

0 Kudos
2 Replies
dotMorten_esri
Esri Frequent Contributor

You will see that error if the Microsoft Visual Studio C++ (VCLibs) libraries aren't installed, or you're not getting the RuntimeCoreNet.dll deployed.

If it's only some customers hitting this, it wouldn't be missing content in your deployment, but more likely the customer's PC that isn't meeting the system requirements. See the requirements here under "Requirements for deployment targets": https://developers.arcgis.com/net/latest/wpf/guide/system-requirements.htm#ESRI_SECTION1_F2655B7F48F...

Windows 10 should be shipping with these, but they need to be installed on Windows 7.

It is possible to deploy the contents of the VCLibs with your package - however Microsoft recommends against that, because it prevents them from servicing them via Windows Update.

KayugaSolution
New Contributor

Thank you, that was it.

0 Kudos