hello
I am writing an error handling within different classes in asp.net. the
error class reports the Exception E's string to the database.
but it cuts big strings, if i just display the error it is ok , but when i
send it to function to store it in database just a little part of error
string appears.
is that because of size of string?cuz when i change the error message by
hand and put some shorter strings it works fine. i just declared normal
strings like :
string errormessage = null ;
and for catching error :
catch(Exception error)
{
string temp = error.ToString( );
ErrorReport myrep = new
ErrorReport(con nectionstring," 92",temp,DateTi me.Now);
myrep.InserErro r(); // here in database it's just a little text like
"System.Argumen tE" this short!
Response.Write( temp); // here it apears correctly
}
thanks in advance
I am writing an error handling within different classes in asp.net. the
error class reports the Exception E's string to the database.
but it cuts big strings, if i just display the error it is ok , but when i
send it to function to store it in database just a little part of error
string appears.
is that because of size of string?cuz when i change the error message by
hand and put some shorter strings it works fine. i just declared normal
strings like :
string errormessage = null ;
and for catching error :
catch(Exception error)
{
string temp = error.ToString( );
ErrorReport myrep = new
ErrorReport(con nectionstring," 92",temp,DateTi me.Now);
myrep.InserErro r(); // here in database it's just a little text like
"System.Argumen tE" this short!
Response.Write( temp); // here it apears correctly
}
thanks in advance
Comment