Author: snovice | Posted on: 7/20/2008 6:23:33 AM | Views : 387

 Exception ex = Server.GetLastError().GetBaseException();

        string strexsource;
        string strExdata;
        string strExInnerexception;
        string strExMessage;
        string strExtargetsite;
        
        strexsource = ex.Source.ToString();
        strExdata = ex.Data.ToString();
        strExInnerexception = ex.InnerException.ToString();
        strExMessage = ex.Message.ToString();
        strExtargetsite = ex.TargetSite.ToString();
 
 and I get this error

Object reference not set to ...

Go to the complete details ...