Object reference not set to an instance of an object.

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 118:            Hashtable htSelect = new Hashtable();
Line 119:            htSelect["@address"] = address;
Line 120:            Hashtable ht = db.getOneRow(sqlQuery, htSelect);
Line 121:            // DataTable dt = db.getDataTable(sqlQuery, ht);
Line 122:

Source File: d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\Service\StructureHost.cs    Line: 120

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   HyperMedia.Lib.GDb.getRows(SqlConnection connection, String sqlQuery, Hashtable aInput) +482
   HyperMedia.Lib.GDb.getOneRow(SqlConnection connection, String sqlQuery, Hashtable aInput) +61
   HyperMedia.Lib.GDb.getOneRow(String sqlQuery, Hashtable aInput) +72
   StructureHost.getHostByAddress(String address) in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\Service\StructureHost.cs:120
   StructureHost.getServiceIdByAddress(String address) in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\Service\StructureHost.cs:199
   HyperMedia.CMS.Core.HttpNavigation.getServiceId() in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\HttpNavigation.cs:91
   HyperMedia.CMS.Service.Url.Rewriter..ctor() in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\Service\Url\Rewriter.cs:22

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
   System.Activator.CreateInstance() +111
   Singleton.getInstance() in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\App_Code\Common\Utils\Singleton.cs:16
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\inetpub\wwwroot\www.oldspice.in\wwwroot\Global.asax:150
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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