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 56:                 Response.BufferOutput = False
Line 57:                 ' context.Response.BinaryWrite(photo)
Line 58:                 Response.OutputStream.Write(photo, 0, photo.Length)
Line 59:                 context.Response.Flush()
Line 60: 

Source File: C:\WebSites\lombarda cofani\EN\GestoreImmagini.ashx    Line: 58

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   GestoreImmagini.ProcessRequest(HttpContext context) in C:\WebSites\lombarda cofani\EN\GestoreImmagini.ashx:58
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +598
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762