iis express worker process has stopped working on any geometric/topologic process on server. fault module name : ExtTopoEngine.dll

4393
3
12-16-2015 04:08 AM
CBSSube_Mudurlugu
New Contributor

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;

3 Replies
K2Sistemas
New Contributor

I have the same problem... Do you resolved? CBS Sube Mudurlugu

0 Kudos
SamNeefs
New Contributor

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;

        }

0 Kudos
SamNeefs
New Contributor

Did you find a solution?

K2 Sistemas

ibbcbs

0 Kudos