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 116:            string encode="big5";
Line 117:            string sCul = "zh-TW";
Line 118:            string strLangCode = HttpContext.Current.Request.Cookies["lang"].Value;
Line 119:            if (strLangCode == null)
Line 120:            {

Source File: h:\root\home\lomonsong-001\www\Lk58com\App_Code\Common.cs    Line: 118

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Common.Charset(String sType) in h:\root\home\lomonsong-001\www\Lk58com\App_Code\Common.cs:118
   LocalizedPage.InitializeCulture() in h:\root\home\lomonsong-001\www\Lk58com\App_Code\LocalizedPage.cs:20
   ASP.member_findpwd_aspx.__BuildControlTree(member_findpwd_aspx __ctrl) in h:\root\home\lomonsong-001\www\Lk58com\member\findpwd.aspx:1
   ASP.member_findpwd_aspx.FrameworkInitialize() in h:\root\home\lomonsong-001\www\Lk58com\member\findpwd.aspx.cs:912308
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.member_findpwd_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b292e20d\c64146\App_Web_findpwd.aspx.48943a5b.n-d3nwz2.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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