Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 28:             {
Line 29:                 DocumentosProducto doc = contexto.DocumentosProducto.FirstOrDefault(d => d.IdDocumento == new Guid(id));
Line 30:                 fichero = doc.Fichero;
Line 31: 
Line 32:                 if (doc.Titulo == null)

Source File: c:\inetpub\vhosts\juno.es\httpdocs\includes\descargaDoc.ashx    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   descargaDocumentos.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\juno.es\httpdocs\includes\descargaDoc.ashx:30
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0