Solved

Can't figure out this error...

Posted on 2007-11-19
6
462 Views
Last Modified: 2013-11-07
Hello Experts. Any clue what this error means?--

Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.home_aspx'.

Source Error:

 Line 1:  <%@ page language="VB" autoeventwireup="false" inherits="Home, App_Web_kdxu8ova" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
Comment
Question by:John Account
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
ID: 20314265
During the publishing stage on framework 2.0 uncheck
the "allow this precompiled site to be updatable".

Another alternative to these is to copy the files directly from your
development environment as the aspx pages define there CodeBehind pages in
there header tags. Either method will work. Option 1 is faster.
0
 
LVL 15

Expert Comment

by:spprivate
ID: 20314290
Sometime wrong names in the inherits section also could be the issue.
Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.

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).
Login is ambiguous in the namespace MyNameSpace.MyApplication
I had a source code with .aspx file containing

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

So, for some reason I changed CodeFile to CodeBehind , problem is fixed. Now
0
 

Author Comment

by:John Account
ID: 20314332
Well, this is just my family website, and this is the way I"m loging users in (they all use same password):

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Select Case txtPassword.Text
            Case ""
                panNote.Visible = True
            Case "Visiting"
                If txtUID.Text = "Visitor" Then
                    Session("User") = "Visitor"
                    Response.Redirect("Home-Visitor.aspx")
                Else
                    panNote.Visible = True
                End If
            Case "password"
                Session("User") = txtUID.Text
                Response.Redirect("Home.aspx")
            Case Else
                panNote.Visible = True
        End Select
    End Sub

    Protected Sub btnOkay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOkay.Click
        panNote.Visible = False
    End Sub
End Class
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:John Account
ID: 20314345
And then the Home page is like this, to confirm correct password was entered:
Partial Class Home

    Inherits System.Web.UI.Page
 

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Select Case Session("User")

            Case ""

                Response.Redirect("Default.aspx")

            Case "Visitor"

                Response.Redirect("Home-Visitor.aspx")

            Case Else

                lblWelcome.Text = "Welcome, " & Session("User") & ". Enjoy your visit."

        End Select

    End Sub
 

End Class

Open in new window

0
 

Author Comment

by:John Account
ID: 20314354
Actually, that doesn't confirm password, just user.
0
 

Author Comment

by:John Account
ID: 20314496
Okay, well, this is fine: I unchecked the "allow this precompiled site to be updatable", as per spprivate's recommendation. So thanks, spprivate. I appreciate the help.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now