Posts Tagged ‘data sets’

Problems with opening typed data sets

January 15th, 2009

 

I was having trouble opening some typed data sets in a project I was asked to work on.  Visual Studio was complaining about invalid data types on columns.

It turned out this was because the type of the column is a type defined in the project, rather than a system type. The designer uses a fully qualified assembly name for the type, including the version. The version comes from AssemblyInfo.cs and because asterisks have been used this changes each build.
The fix is to right-click on the .xsd file and select view code. Search for any type definitions using assembly qualified names and remove everything except the actual type name. You should now be able to open the file in the designer.

Share