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 22: 		object scalar = new Query().EseguiScalar("SELECT Descrizione FROM T_eventi WHERE ID=" + Convert.ToInt32(Request.QueryString["ID"]));
Line 23: 		
Line 24:         config["MetatagDescription"] = StripHTML(scalar.ToString());
Line 25:     }
Line 26: 	

Source File: f:\web\mo19.sassuolo.info\servizi\eventi\cerca_fase03.aspx    Line: 24

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.servizi_eventi_cerca_fase03_aspx.ConfigurazioneTemplate(Hashtable& config) in f:\web\mo19.sassuolo.info\servizi\eventi\cerca_fase03.aspx:24
   TemplateW3C.PaginaBase.LoadTemplate() +459
   TemplateW3C.PaginaBase.AddParsedSubObject(Object control) +129
   System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +10
   ASP.servizi_eventi_cerca_fase03_aspx.__BuildControlTree(servizi_eventi_cerca_fase03_aspx __ctrl) in f:\web\mo19.sassuolo.info\servizi\eventi\cerca_fase03.aspx:1
   ASP.servizi_eventi_cerca_fase03_aspx.FrameworkInitialize() in g:\Microsoft.NET\v2.0.50727\Temporary ASP.NET Files\root\17876d9c\b9848e0c\App_Web_qhgs_ufd.9.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +56
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.servizi_eventi_cerca_fase03_aspx.ProcessRequest(HttpContext context) in g:\Microsoft.NET\v2.0.50727\Temporary ASP.NET Files\root\17876d9c\b9848e0c\App_Web_qhgs_ufd.9.cs:0
   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