odd behaviour..
i created a table, had a spatial data type.,
in my sproc, i was doing a select * from sometablewithspatialtype
on my dev machine, this worked with no issues, it ran., returned the table., i never used the spatialtype., but it was there in the datatable..
on my production machine,. a hosted website, discoutnasp... it gave me a
DataReader.GetFieldType(...) returned null.
googling that error gave me http://social.technet.microsoft.com/Forums/en-US/sqlnetfx/thread/eae17407-2910-455c-92eb-8c28e5dabbc5/
i tried that,. it didnt help... so... what i did was simple modify my select *., to select ...named columns and excluded the spatial data type...
all my spatial calculatiosn are in sprocs itself., so i never really "set" a geometry or geography data type in code...
not sure why it works on my dev machine but not hosted production.,.. strange?