Server Error in '/HGC' 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 93: 
Line 94:     Public Sub closeConn()
Line 95:         mobjAdapter.SelectCommand.Connection.Close()
Line 96:     End Sub
Line 97: 

Source File: C:\inetpub\wwwroot\HGC\App_Code\connections.vb    Line: 95

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   connections.closeConn() in C:\inetpub\wwwroot\HGC\App_Code\connections.vb:95
   Check.getPropertyCode(String strPropertykey) in C:\inetpub\wwwroot\HGC\App_Code\check.vb:393
   weddings.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\HGC\Sihui\weddings.aspx.vb:16
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


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