CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • BC30456: 'InitializeCulture' is not a member of 'ASP.default2_aspx'.

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    6260
  • Date Created
    Wednesday, January 11, 2023
  • Last Updated
    Wednesday, January 11, 2023
  • This Article Has been Viewed
    372 times
  • Short Desc
    InitializeCulture is not a member of ASP.default2_aspx
  • Details
    When designing your page, you must ensure all tags are correctly entered and match between your main.aspx and CodeFile or CodeBehind files.
  • Recreate Issue
    This error will occur if you have a namespace in your codefile and it does not match the @ Page tag in your main.aspx file.

    <%
    @ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2"
    %>
  • Resolve Issue
    This error will happen if you have a namespace in the CodeFile
    Example

    (Substituting TagLib for your NameSpace name)

    Namespace TagLib

    To correct this issue.
    Go inside of your CodeFile and replace
    >Inherits="Default2"
    with
    Inherits="TagLib._Default"

    <%
    @ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
    %>

    to
    <%
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="TagLib._Default"
    %>



    --------
    Related Articles

    ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)«