Hi. I have been developing arcgis desktop applications for a long time. İ was using arcgis 9.3 for my applications. We upgraded to arcgis 10.3.1 now. But i have an error on my web service(.asmx). When i do any kind of geometric process i get the following iis error.
"iis express worker process has stopped working". error occurs on exTopoEngine.dll
Even this very simple code as below throws this error on topologicOperator.Simplify(); if i skip simplfy, it throws the same iis error on IPolygon polygon = topologicalOperator.Buffer(1) as IPolygon;.
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
AoInitialize init = new AoInitialize();
if (init.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeArcServer) == esriLicenseStatus.esriLicenseAvailable)
init.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcServer);
else
throw new Exception("ESRI ArcGIS Server License is unavailable or has failed");
IPoint[] points = new IPoint[5];
for (int i = 0; i < points.Length; i++)
{
points = new PointClass();
}
points[0].PutCoords(0, 0);
points[1].PutCoords(0, 10);
points[2].PutCoords(10, 10);
points[3].PutCoords(10, 0);
points[4].PutCoords(0, 0);
IPointCollection4 pointCollection = new PolygonClass();
IGeometryBridge geometryBride = new GeometryEnvironmentClass();
geometryBride.AddPoints(pointCollection, ref points);
IArea area = pointCollection as IArea;
ITopologicalOperator topologicalOperator = pointCollection as ITopologicalOperator;
topologicalOperator.Simplify();
IPolygon polygon = topologicalOperator.Buffer(1) as IPolygon;
area = polygon as IArea;