title: ITopologicalOperator.Intersect, how does this work?
body: <p>I'm trying to intersect all features of a layer with another's but I'm getting the web ADF application stuck while executing the "ConstructUnion" function</p>
  
  <p>Here's the code I've written so far</p>
  
  <pre><code>// create a geometrybag for layer1
  ESRI.ArcGIS.Geometry.IGeometry geometryBag = new ESRI.ArcGIS.Geometry.GeometryBagClass();
  geometryBag.SpatialReference = m_firstLayerFirstfeatureIGeometry.SpatialReference;
  ESRI.ArcGIS.Geometry.IGeometryCollection geometryCollection = (ESRI.ArcGIS.Geometry.IGeometryCollection)geometryBag;
  // Cycle all features of first layer and add them to the collection
  foreach (DataRow m_dr in m_firstLayerfeatureGraphics.Rows)
  {
      // Takes this feature's geometry
      ESRI.ArcGIS.ADF.Web.Geometry.Geometry adfFeature =
          m_firstLayerfeatureGraphics.GeometryFromRow(m_dr) as ESRI.ArcGIS.ADF.Web.Geometry.Geometry;
      // convert to a igeometry object
      ESRI.ArcGIS.Geometry.IGeometry m_tempfeatureIGeometry =
      ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local.Converter.ToIGeometry(adfFeature, ctx);
      System.Diagnostics.Debug.WriteLine("m_firstLayerfeatureGraphics +1 ");
      object missing = Type.Missing;
      geometryCollection.AddGeometry(m_tempfeatureIGeometry, ref missing, ref
      missing);
  }
  ESRI.ArcGIS.Geometry.ITopologicalOperator mtopo1 = new ESRI.ArcGIS.Geometry.PolygonClass();
  // FOLLOWING LINE BLOCKS APPLICATION
  mtopo1.ConstructUnion((ESRI.ArcGIS.Geometry.IEnumGeometry)geometryBag);
  </code></pre>
  
  <p>Any idea why?</p>