Feb 12, 2014, 1:19 PM
[CLOSED] Error with [DirectMethod(IDMode = DirectMethodProxyIDMode.None)]
I do not understand this error, works fine locally on the server gives this error.
Thank you.
System.NullReferenceException: Object reference not set to an instance of an object. at AfiSystem.FormActivosFijos._ActivosFijos_Movimientos.Imprimir(Int32 id) in C:\Proyectos\AplicadNet\AfiSystem\AfiSystem\FormActivosFijos\ActivosFijos_Movimientos.aspx.cs:line 93
This is the code:[DirectMethod(IDMode = DirectMethodProxyIDMode.None)]
public void Imprimir(int id)
{
DataSet dsDatos = Sentencias.GetDatos("Exec ReporteMovimiento_sp @ActivoFijo_MovimientoId =" + id.ToString());
Session["dtLlevar"] = dsDatos.Tables[0];
Session["NombreReporte"] = "rptMovimiento.rpt";
X.Redirect("~/Reporte/CargarReporte.aspx", "Abriendo reporte...");
}
Thank you.
Last edited by geoffrey.mcgill; Feb 12, 2014 at 6:30 PM.
Reason: [CLOSED], Please use [CODE] tags