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 15: 
Line 16:         Offerta o = null;
Line 17:         if (id.Contains("-"))
Line 18:         {
Line 19:             o = Offerta.Load(int.Parse(id.Substring(0,id.IndexOf("-"))));

Source File: c:\deployments\prod\www.spazioesclusivo.com\cliente\dynimages\product.ashx    Line: 17

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   LittleImage.ProcessRequest(HttpContext context) in c:\deployments\prod\www.spazioesclusivo.com\cliente\dynimages\product.ashx:17
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974