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;
I have the same problem... Do you resolved? CBS Sube Mudurlugu
We have the same / a similar problem, also after upgrading to 10.3.1.
Here IIS (express and regular IIS) also crashes because of ExtTopoEngine.dll
In the Windows log I could see that ExtTopoEngine.dll is the reason of the crashes.
Faulting module path: C:\PROGRAM FILES (X86)\ARCGIS\DESKTOP10.3\BIN\ExtTopoEngine.dll
We are also calling a method on topologyOperater, altough we are calling "ConstructUnion" when it crashes.
This is our complete code:
public static object MakeUnionGeom(dynamic geoms)
{
List<IGeometry> iGeoms = ((List<object>)geoms).Cast<IGeometry>().ToList();
IGeometry geometryBag = new GeometryBagClass();
IGeometryCollection geometryCollection = geometryBag as IGeometryCollection;
for (int i = 0; i < iGeoms.Count; i++)
{
IGeometry shp = iGeoms;
object missing = Type.Missing;
geometryCollection.AddGeometry(shp, missing, missing);
}
ITopologicalOperator unionedPolygon = new PolygonClass();
unionedPolygon.ConstructUnion(geometryBag as IEnumGeometry);
return unionedPolygon as IPolygon;
}