laptop and a wrench

不具合

An ArcEngine application with custom code crashes if the internet is disconnected while the application is still running.

最後に公開された状態: October 14, 2014 ArcGIS for Desktop
不具合 ID 番号 NIM067666
送信されましたApril 28, 2011
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
ステータスWill Not Be Addressed

参考情報

Contact Esri Support if this is still an issue

対処法

Please find the code to check the connectionType of the MXD loaded in mapControl.----------------------------------------------public override void OnClick() { // TODO: Add Command1.OnClick implementation IMapDocument pMxdoc; pMxdoc = (IMapDocument) new MapDocumentClass(); String MXDPath; MXDPath = @"<a href="file:D:/Amruta_Test/World_Street_Map.mxd" target="_blank">D:\Amruta_Test\World_Street_Map.mxd</a>"; pMxdoc.Open(MXDPath,""); ILayer lyr; lyr = (ILayer)pMxdoc.ActiveView.FocusMap.get_Layer(0); IMapServerLayer msLyr; IAGSServerObjectName soName; String docName; String mapName; if (lyr is IMapServerLayer) { msLyr = (IMapServerLayer)lyr; msLyr.GetConnectionInfo(out soName, out docName, out mapName); Int32 connectionconstant; connectionconstant = (Int32)soName.AGSServerConnectionName.ConnectionType; // If ConnectionType = 2 :Internet connection if (connectionconstant.Equals(2)) { System.Windows.Forms.MessageBox.Show("This ArcMap Document is accessing data from Internet Connection"); } // If ConnectionType = 1 :Local connection if (connectionconstant.Equals(1)) { System.Windows.Forms.MessageBox.Show("This ArcMap Document is accessing data from LAN/Local Connection"); } } }----------------------------------------------------------------

再現の手順

不具合 ID: NIM067666

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

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

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

ArcGIS エキスパートのサポートを受ける

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

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

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