Server Error in '/' Application.

Unable to cast object of type 'ASP.kampanyalar_aspx' to type 'Teta.Web.CulturalPage'.

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.InvalidCastException: Unable to cast object of type 'ASP.kampanyalar_aspx' to type 'Teta.Web.CulturalPage'.

Source Error:


Line 18:             <div id="breadcrumb">
Line 19:                 <span class="Right">
Line 20:                     <asp:ImageButton ID="Langen" runat="Server" ImageUrl="~/images/en-US.jpg"  CommandName="SetLang" CommandArgument="en-US" ToolTip="English" Visible="False" />
Line 21:                     <asp:ImageButton ID="Langtr" runat="Server" ImageUrl="~/images/tr-TR.jpg"  CommandName="SetLang" CommandArgument="tr-TR" ToolTip="Türkçe" Visible="false" />
Line 22:                 </span>

Source File: C:\inetpub\wwwroot\www.tetaq.com\MasterPage.master    Line: 20

Stack Trace:


[InvalidCastException: Unable to cast object of type 'ASP.kampanyalar_aspx' to type 'Teta.Web.CulturalPage'.]
   Teta.Web.Pages.MasterType.get_Page() +30
   ASP.masterpage_master.__BuildControlLangen() in C:\inetpub\wwwroot\www.tetaq.com\MasterPage.master:20
   ASP.masterpage_master.__BuildControlform1() in C:\inetpub\wwwroot\www.tetaq.com\MasterPage.master:16
   ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in C:\inetpub\wwwroot\www.tetaq.com\MasterPage.master:1
   ASP.masterpage_master.FrameworkInitialize() +90
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +36
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +672
   System.Web.UI.Page.get_Master() +55
   System.Web.UI.Page.ApplyMasterPage() +14
   System.Web.UI.Page.PerformPreInit() +51
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +296


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