ArcGIS_Buffer_Geoprocessing_CSharp sample should initialize the functionality, not the resource.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM005030
已提交
October 30, 2006
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.2
修正版本
9.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
If the geoprocessing functionality is not initialized, the application will return an error "object reference not set to an instance of an object". In the Default.aspx.cs, the beginning of the CalculateBufferServer method should be as follows: IGeoprocessingResource igp = GeoprocessingResourceManager1.GetResource(0); ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.GeoprocessingFunctionality agp = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.GeoprocessingFunctionality) igp.CreateFunctionality(typeof(ESRI.ArcGIS.ADF.Web.DataSources.IGeoprocessingFunctionality), null); agp.Initialize();