Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Shapefile not loading after migration to Silverlight 4
posted

Hello,

We have been wrestling with this issue for quite awhile - perhaps someone else has encountered this issue and knows the resolution.

Our Silverlight mapping app worked well in SL3, but after the migration to SL4, we began receiving the generic "child of another element" (4009) error in Silverlight. We aren't sure why, but reprojecting the shapefiles from a conical-type to a geographic, cylindrical type resolved the issue. However, the findamental look/feel of the map has changed, and we have tried, unsuccessfully, to force the project to load the conical files.

It was difficult to narrow the line of code that caused the problem, but it appears that DataMapping.Converter.ConvertFromString may have a part to play:

 

...

If

 

 

strStateCounty = "County" Then

reader.DataMapping =

 

TryCast(converter.ConvertFromString("Name=STATE_FIPS; Label=STATE_NAME; Caption=STATE_NAME"), DataMapping)

...

It seems that the app does not like Caption=STATE_NAME as removing this bit from this line, and anywhere else that attempts the type conversion, the shapefile will load. Of course, we rely upon that Caption conversion. Additionally, it does not seem like the issue is related to any sort of shapefile corruption as these same exact files work well in our SL3 application; furthermore, I have tried regenerating the files from scratch, and all files load without issue, and behave as expected, in ArcGIS.

We are using v9.2

Thank you.

Parents
No Data
Reply Children
No Data