Numéro d’ID de bogue |
BUG-000102447 |
Envoi | January 26, 2017 |
Dernière modification | August 26, 2025 |
S’applique à | ArcGIS GIS Server |
Version trouvée | 10.2.1 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | N/A |
Version de correction | 10.5.1 |
Statut | Fixed
Le bogue a été corrigé. Pour plus d’informations, reportez-vous aux sections Version de correction et Informations supplémentaires, le cas échéant.
|
Informations supplémentaires
The issue is not reproducible using our own programs and no code has been submitted that does reproduce the issue. Additional steps have been requested to reproduce the issue, but no further steps are available. If additional steps to reproduce the problem can be provided then the issue can be re-evaluated.
Solution de contournement
Several ArcGIS GIS Server 10.6.1 users experienced "System.InvalidCastException: Unable to cast object of type 'System.__ComObject' to type 'ESRI.ArcGIS.esriSystem.EnvironmentManagerClass'." exception thrown at IEnvironmentManager environmentManager = new EnvironmentManager() as IEnvironmentManager;To fix the above exception, instantiate EnvironmentManager as singleton as the code below:Type t = Type.GetTypeFromProgID("esriSystem.EnvironmentManager");System.Object obj = Activator.CreateInstance(t);IEnvironmentManager pEnvMgr = obj as IEnvironmentManager;
Étapes pour reproduire
ID de bogue: BUG-000102447
Logiciel: