Hi, In a windows form I have code ..
try
{
string _tempTotalTime;
TimeSpan _totalTime = DateTime.UtcNow - Convert.ToDateTime("2026-07-23 22:21:48.220");
//2009-07-23 22:21:48.220 is a variable value which I am retriving from database
_tempTotalTime = _totalTime.Hours.ToString() + ":" + _totalTime.Minutes.ToString() + ":" + _totalTime.Seconds.ToString();
_totalTime = TimeSpan.Parse(_tempTotalTime);
label1.Text = _totalTime.ToString();
}
catch (Exception ex)
{
label2.Text = ex.StackTrace + ex.InnerException + ex.Message + ex.Source;
}
When I run this form, i get the expected output.
Now I created a setup project of the same application which contains
only this code. The setup is running proper and giving the proper input
, but......... when I run this setup on the different machine (which is
not a development machine ..but having 2.0 framework installed) it
gives me error..
ex.StackTrace -> at
System.TimeSpan.StringParser.Parse(String s)
ex.InnerException -> at
System.TimeSpan.Parse(String s)
ex.Message-> at ... Input string was
not in a correct format
ex.Source -> mscorlib
Can anybody help me
out? ???? it's urgent