Server Error in '/' Application.

The given key was not present in the dictionary.

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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 1:  <%@ Page MasterPageFile="~/Main.master" Language="C#" AutoEventWireup="false" Inherits="_Default" EnableViewState="False" meta:resourcekey="Page" Codebehind="default.aspx.cs" %>
Line 2:  <%@ Register TagPrefix="ctl" TagName="Login" Src="controls/login.ascx" %>
Line 3:  <%@ Register TagPrefix="ctl" TagName="Top" Src="controls/top.ascx" %>

Source File: c:\WebSites\BTPS\btpsweb\Default.aspx    Line: 1

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +38
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +54
   BasePage.InitializeCulture() in C:\Projects\BTPS\btpsweb\classes\BasePage.cs:350
   ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in c:\WebSites\BTPS\btpsweb\Default.aspx:1
   ASP.default_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\74a0a88b\2dc9fd72\App_Web_hyfhjgus.11.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +52
   System.Web.UI.Page.ProcessRequest() +79
   System.Web.UI.Page.ProcessRequest(HttpContext context) +74
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\74a0a88b\2dc9fd72\App_Web_hyfhjgus.11.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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