Consider the following scenario:
- You run an application that is created by using Microsoft Visual Studio 2010.
- You call the DataSet.ReadXmlSchema method to read an XML schema into a DataSet object.
- You set the Negative sign symbol setting to a symbol other than the minus sign ("-") in the Number tab of the Customize Format dialog box.
Note The Customize Format dialog box is in the Regional and Language settings of the computer.
Input string was not in a correct format.
StackTrace:
at System.Number.StringToNumber()
at System.Number.ParseInt32()
at System.String.System.IConvertible.ToInt32()
at System.Convert.ChangeType()
at System.Data.XSDSchema.HandleElementColumn()
at System.Data.XSDSchema.HandleParticle()
at System.Data.XSDSchema.HandleComplexType()
at System.Data.XSDSchema.InstantiateTable()
at System.Data.XSDSchema.HandleTable()
at System.Data.XSDSchema.LoadSchema()
at System.Data.DataSet.InferSchema()
at System.Data.DataSet.ReadXmlSchema()
at System.Data.DataSet.ReadXmlSchema()
at WindowsFormsApplication2.Form1.button1_Click()
StackTrace:
at System.Number.StringToNumber()
at System.Number.ParseInt32()
at System.String.System.IConvertible.ToInt32()
at System.Convert.ChangeType()
at System.Data.XSDSchema.HandleElementColumn()
at System.Data.XSDSchema.HandleParticle()
at System.Data.XSDSchema.HandleComplexType()
at System.Data.XSDSchema.InstantiateTable()
at System.Data.XSDSchema.HandleTable()
at System.Data.XSDSchema.LoadSchema()
at System.Data.DataSet.InferSchema()
at System.Data.DataSet.ReadXmlSchema()
at System.Data.DataSet.ReadXmlSchema()
at WindowsFormsApplication2.Form1.button1_Click()