This project has moved. For the latest updates, please go here.

PostGIS datasource : geometry column error


I am facing this issue of "geometry not found in the table " when i try to run the following code from this link:

My connection string is: string ConnStr = "Server=;Port=5432;User Id=postgres;Password=osm;Database=osm1;";

Also i tried to give different table name and column name as they were present in my database,but still getting the same error.
For example: string tablename = "planet_osm_polygon";
                  string idColumn = "osm_id";
I dont know which tablename and idColumn to pass in order to display map contents from my database,so please can anyone guide me through this difficulty..

I have attached the screenshots of my database .

file attachments