Friday, June 12, 2009

Convert VS2005 to VS2005 changes xml namespace of typed dataset

A warning for anyone who is converting a solution from Visual Studio 2005 to Visual Studio 2008 - the conversion wizard may change the xml namespace of your strongly typed datasets. 

I've just had a scenario where an upgraded project failed to perform the typedDS.ReadXml() method. The xml fragment to be loaded had the namespace specified and hence since the ds namespace was changed no longer loaded the xml. This resulted in an empty dataset. After some digging I found that the namespace in the typedDS.Designer.cs file had been changed as part of the conversion.

Cheers.

0 comments: