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 1:  <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Impressum.aspx.cs" Inherits="agentur._Impressum" %>
Line 2:  
Line 3:  <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

Source File: e:\HostingSpaces\21711\livecharter.at\wwwroot\Impressum.aspx    Line: 1

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   agentur.repository.MyPage.InitializeCulture() in E:\rd\vsprojects2017comunity\agentur\agentur\agentur\repository\MyPage.cs:46
   ASP.impressum_aspx.__BuildControlTree(impressum_aspx __ctrl) in e:\HostingSpaces\21711\livecharter.at\wwwroot\Impressum.aspx:1
   ASP.impressum_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\77426890\7ebfdeb1\App_Web_g5oag3ve.0.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +51
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequest(HttpContext context) +73
   ASP.impressum_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\77426890\7ebfdeb1\App_Web_g5oag3ve.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +541
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


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