at what line you are getting this exception.......what value of ex.tostring