I updated a .Net project from FW 3.5 to 4.0 (change the .Net FW target), I received a dozen of errors about No Constructors defined. One of them is below: Error The type 'ESRI.ArcGIS.Geometry.SpatialReferenceEnvironmentClass' has no constructors defined What should I do to solve this problem? Thanks.
You can do that if you want but I've run into problems trying to use the 4.0 Framework with ArcObjects. The majority of our code is still at 9.3.1 but if you're using 10.0 you may not run into the same problems.
Use the approach posted at: http://gis.stackexchange.com/questions/5782/no-constructor-defined 1) In your project references, find the assembly where FeatureClassNameClass is (ie ESRI.ArcGIS.Geodatabase). 2) Right-click it and select "properties" 3) Change "Embed interop types" to "false" The No-Constructor problem is gone.
You can do that if you want but I've run into problems trying to use the 4.0 Framework with ArcObjects. The majority of our code is still at 9.3.1 but if you're using 10.0 you may not run into the same problems.