November 05, 2010

Upgrading Datasets from VS2008 to VS2010

When you upgrade datasets in VS2008 projects to VS2010 the converter does some weird things which may changes behaviorr of datasets & impacts rest of the code.

For example all data tables get derived from DataTable instead of TypedDataSet. To avoid this delete the designer code behind file & let VS2010 regenerate file for you.

When you do this you may get several messages like -

Could not find schema information for the attribute 'urn:schemas-microsoft-com:xml-msprop:Generator_RowEvHandlerName'.

If you get such messages then go to visual Studio command prompt and execute the following command and then restart your machine

 Devenv.exe /ResetSkipPkgs