We are upgrading ArcGIS Server Object Extension (SOE) from 10.3.1 to 10.6.1. and I'd like to confirm a few things
We have a C# project that currently references - ESRI.ArcGIS.System (we use two return types, IPropertySet and IServerEnvironment2) is this reference replaced by Esri System Object Library 10.6 (ESRI.ArcGIS.esriSystem;)?
[Update]
I am getting an error here
private THandlerInterface FindRequestHandlerDelegate<THandlerInterface>() where THandlerInterface : class
{
try
{
IPropertySet props = ServerEnvironment.Properties;
}
catch (Exception e)
{
}
}
private IServerEnvironment2 ServerEnvironment
{
get
{
if (_serverEnvironment == null)
{
UID uid = new UIDClass();
uid.Value = "{32D4C328-E473-4615-922C-63C108F55E60}";
// Create an EnvironmentManager and retrieve the IServerEnvironment
IEnvironmentManager environmentManager = new EnvironmentManager() as IEnvironmentManager;
_serverEnvironment = environmentManager.GetEnvironment(uid) as IServerEnvironment2;
}
return _serverEnvironment;
}
}
[Error]
Instance of service ' AutomationException: Unable to cast object of type 'System.__ComObject' to type 'ESRI.ArcGIS.esriSystem.EnvironmentManagerClass'. |
|
[/Error]