laptop and a wrench

漏洞

Calling dispose method on MapServerDcomProxy results in NullReferenceException.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM046983
已提交July 22, 2009
上次修改时间April 2, 2025
适用范围No Product Found
找到的版本10.0
编程语言C#
修正版本N/A
状态Fixed

解决办法

Supressing Finalize code for this object may be an option to overcome the problemclass GoodMapServerDcomproxy : MapServerDcomProxy { public GoodMapServerDcomproxy(IServerContext context, bool releaseContextOnDispose, DcomProxy proxy) : base(context, releaseContextOnDispose, proxy) { if (proxy == null) { GC.SuppressFinalize(this); } } }Another workaroundChange the unhandled exception policy back to the default behavior that occurs in the .NET Framework 1.1 and in the .NET Framework 1.0. More information regarding this way of supressing error message can be found at http://msdn.microsoft.com/en-us/library/ms228965.aspx. By implementing this workaround, serious programming problems can go undetected, so proceed with caution.To enable this default behavior, add the following code to the Aspnet.config file that is located in the following folder: %WINDIR%\Microsoft.NET\Framework\v2.0.50727<configuration> <runtime> <legacyUnhandledExceptionPolicy enabled="true" /> </runtime></configuration>

重现步骤

漏洞 ID: NIM046983

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项