It doesn't work on .Net 1.1

K

Kristofer Gafvert

I have this code, that works in .Net Framework 1.0, but not on 1.1 where i
will run it on (Windows Server 2003):

foreach (DataTable mTable in ds.Tables)

foreach (DataRow mRow in mTable.Rows)

foreach (DataColumn mCol in mTable.Columns)

mRow[mCol] = mRow[mCol].ToString().Replace("[webApplicationRoot]",
webApplicationRoot);


It gives me the error:

System.FormatException: Input string was not in a correct format. at
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo
info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value) at
System.Data.Common.Int32Storage.Set(Int32 record, Object value) at
System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <>
in Parent Column. Expected type is Int32.

Please, can anyone help? I want to get this to work as fast as possible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top