laptop and a wrench

不具合

The EnvironmentManager singleton object in the ServerLogger.GetServerEnvironment method is not instantiated following the documentation.

最後に公開された状態: June 22, 2017 ArcGIS GIS Server
不具合 ID 番号 BUG-000102447
送信されましたJanuary 26, 2017
最終更新日July 28, 2020
適用対象ArcGIS GIS Server
見つかったバージョン10.2.1
サーバー プラットフォームWindows
クライアント プラットフォームN/A
Version Fixed10.5.1
ステータスFixed

参考情報

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.

対処法

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;

再現の手順

不具合 ID: BUG-000102447

ソフトウェア:

  • ArcGIS GIS Server

ArcGIS の専門家からヘルプを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動

このトピックについてさらに調べる