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 291:                            <h4 class="fs_22 fw_medium mb_20"><%=Fuc.Label("msg.newsletter.subscription") %></h4>
Line 292:                            <form action="#">
Line 293:                                <asd:TextBox runat="server" ID="txtEmailNewsletter2" PlaceHolder="<%$Label:msg.enter.email.address %>" Type="Email"></asd:TextBox>
Line 294:                                <asd:Button runat="server" OnClick="AddNewsletter2" CssClass="btn-1 pt_18 pb_15 pl_30 pr_30 ff_sec fw_bold tt_u fs_14 ls_1"><%=Fuc.Label("msg.subscribe.us") %> <i class="flaticon-right-arrow-1"></i></asd:Button>
Line 295:                            </form>

Source File: c:\CODE\Kgm\Web\Site.Master    Line: 293

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WebBase.Model.Service.LanguageService.GetCurrentLanguage() in D:\PROJECTS\Cloud\FW\FW\Model\Service\LanguageService.cs:55
   WebBase.Model.Service.LabelService.GetOrCreate(String key) in D:\PROJECTS\Cloud\FW\FW\Model\Service\LabelService.cs:17
   WebBase.Model.Service.LabelService.GetLabelValue(Object key, Object[] args) in D:\PROJECTS\Cloud\FW\FW\Model\Service\LabelService.cs:83
   FW.ExpressionHelper.ExpressionLabel.GetEvalData(String expression) in D:\PROJECTS\Cloud\FW\FW\ExpressionHelper\ExpressionLabel.cs:14
   ASP.web_site_master.__BuildControltxtEmailNewsletter2() in c:\CODE\Kgm\Web\Site.Master:293
   ASP.web_site_master.__BuildControlpageMain() in c:\CODE\Kgm\Web\Site.Master:85
   ASP.web_site_master.__BuildControlTree(web_site_master __ctrl) in c:\CODE\Kgm\Web\Site.Master:1
   ASP.web_site_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\bc0f8a1b\fad61300\App_Web_l0nbcsdh.0.cs:0
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1304
   System.Web.UI.Page.get_Master() +64
   System.Web.UI.Page.ApplyMasterPage() +17
   System.Web.UI.Page.PerformPreInit() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1177


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