Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't figure out this error...

Posted on 2007-11-19
6
Medium Priority
?
474 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 2000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

715 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