Posts Tagged ‘InvalidOperationException’
InvalidOperationException : There was an error in XML document
Posted by: admin in .NET, Compiler Errors And Messages, Exception, VB.Net on November 9th, 2009
This error occurred when there is an invalid character on the data. Before adding/saving to the datatable you need to replace the invalid character. The known invalid character is the null.
To replace it in vb.net
dim mData As string
Strings.Replace(mData, vbNullChar, “”)