Hola, yo tengo un procedimiento almacenado en sql-server que cuando lo ejecuto desde el Analizador de Consultas del mismo SQLSERVER 2000, demora aproximadamente unos 6 minutos, y ese mismo procedimiento lo ejecuto desde una pagina "aspx" y el resultado pasarlo aun datagrid, para ejectutar esto utilizo u SQLCommand y el resultado lo paso aun DataReader, y me sale el siguiente error:
 
Object reference not set to an instance of an object. 
Source Error:  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
Stack Trace:   
[NullReferenceException: Object reference not set to an instance of an object.]
   indicegestion.WebForm1.Button1_Click(Object sender, EventArgs e) +1174
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPo  stBackEventHandler.RaisePostBackEvent(String eventArgument) +58
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve  ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol  lection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277