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 10:     var instance = Instance.GetInstance(baseUrl);
Line 11:     Page.Instance = instance;
Line 12:     var DefaultLang = HttpContext.Current.Request.UserLanguages[0];
Line 13:     int LangId;
Line 14:     var langQuery = Request.QueryString["Lang"];

Source File: C:\inetpub\wwwroot\prod.mrumdg-esd.mc3.cloud.portal\account\Login.cshtml    Line: 12

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_account_Login_cshtml.Execute() in C:\inetpub\wwwroot\prod.mrumdg-esd.mc3.cloud.portal\account\Login.cshtml:12
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +98
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +161
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +141


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