Solved

Can't figure out this error...

Posted on 2007-11-19
6
467 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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