laptop and a wrench

Bug

ArcGIS_Buffer_Geoprocessing_CSharp sample should initialize the functionality, not the resource.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM005030
SubmittedOctober 30, 2006
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Version Fixed9.2
StatusFixed

Workaround

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();

Steps to Reproduce

Bug ID: NIM005030

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options