Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can't figure out this error...

Posted on 2007-11-19
6
Medium Priority
?
475 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 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

824 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