Select to view content in your preferred language

Building C# examples

2112
3
11-08-2011 03:36 AM
CarlosOrtiz
Emerging Contributor
Ok,  I have tried to build the examples on two development machine and I get this error on both.

Error 1 'Esri.FileGDB.Row' does not contain a definition for 'Geometry' and no extension method 'Geometry' accepting a first argument of type 'Esri.FileGDB.Row' could be found (are you missing a using directive or an assembly reference?) C:\FileGDB_API_VS2010_1_1\samplesC#\Display\Form1.cs 115 43 Display

Am I missing something?  I installed OpenTK to overcome that error.  I have tried compiling as x86 and x64.  Same errors. 

The systems are both using VS2010 and the operating systems are Windows XP Version 2002 SP3 (32-bit) and Windows Server 2008 R2 Datacenter  Service Pack 1 (64-bit).
0 Kudos
3 Replies
LanceShipman
Esri Regular Contributor
Are you using VS2010 Express or Professional? .NET Framework 4.0?
0 Kudos
CarlosOrtiz
Emerging Contributor
Visual 2010 Premium and .Net Framework 4.  All I did was unzip and compile after installing OpenTK.
0 Kudos
LanceShipman
Esri Regular Contributor
There is an error in the sample.

Replace:
PointShapeBuffer geometry = row.Geometry;

With:
PointShapeBuffer geometry = row.GetGeometry();
0 Kudos