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 33:         Dim dt As DataTable = SelectDBRows(sql, constring)
Line 34:         Dim pass As String = ""
Line 35:         If dt.Rows.Count > 0 Then
Line 36:             pass = dt.Rows(0).Item("pass")
Line 37:         End If

Source File: D:\vietsmile\webVisa\vietnamrailways.org\App_Code\modfunction.vb    Line: 35

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   modfunction.get_pass_mail(String mail) in D:\vietsmile\webVisa\vietnamrailways.org\App_Code\modfunction.vb:35
   info_contact..ctor() in D:\vietsmile\webVisa\vietnamrailways.org\info\contact.aspx.vb:15
   ASP.info_contact_aspx..ctor() in D:\vietsmile\webVisa\vietnamrailways.org\info\contact.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_55igky1n.Create_ASP_info_contact_aspx() +62
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +131
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +43
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +374
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +127


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0