Get the InnerException

try
{

}
catch (Exception ex)
{
	while (ex.InnerException != null) ex = ex.InnerException;
	throw ex;
}