473,583 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BC30456: 'InitializeCult ure' error when compiling new project page

I have a project I'm working on in VS2005 using vb.net with a MSSql
2005 backend. Everytime I try to run the application I get the same
error message;

********* ERROR *********
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: 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).

Source Error:

Line 1: Imports IUSProductivity .DataSet1TableA dapters
Line 2:
Line 3: Partial Public Class AllCategories

Source File: C:\Documents and Settings\jaime. cruz.UDG\My
Documents\Visua l Studio
2005\Projects\I USProductivity\ IUSProductivity \AllCategories. aspx.vb
Line: 1
********* END ERROR *********

This is a brand new project with only one page that has a simple
DataGrid displaying data from a DataSet file with one Table Adapter.

If anyone can identify the cause of this error I would be very grateful
as I am completely at a loss as to why this is happening.

Page code is as follows;

******* ASPX FILE ******
<%@ Page Language="vb" CodeFile="AllCa tegories.aspx.v b"
Inherits="IUSPr oductivity.AllC ategories" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>All Main Categories</title>
<link href="styleShee t.css" rel="stylesheet " type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataGrid ID="GridView1" runat="server">
<HeaderStyle CssClass="Heade rStyle" BackColor="#507 CD1"
Font-Bold="True" ForeColor="Whit e" />
<ItemStyle CssClass="RowSt yle" BackColor="#EFF 3FB" />
<AlternatingIte mStyle CssClass="Alter nateRowStyle"
BackColor="Whit e" />
<FooterStyle BackColor="#507 CD1" Font-Bold="True"
ForeColor="Whit e" />
<EditItemStyl e BackColor="#246 1BF" />
<SelectedItemSt yle BackColor="#D1D DF1" Font-Bold="True"
ForeColor="#333 333" />
<PagerStyle BackColor="#246 1BF" ForeColor="Whit e"
HorizontalAlign ="Center" />
</asp:DataGrid>
</div>
</form>
</body>
</html>
****** END ASPX FILE CODE ******

****** CODE FILE CODE *********
Imports IUSProductivity .DataSet1TableA dapters

Partial Public Class AllCategories
Inherits System.Web.UI.P age

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
Dim MainCatAdapter As New tblMainCategory TableAdapter
GridView1.DataS ource = MainCatAdapter. GetData
GridView1.DataB ind()
End Sub

End Class
******** CODE FILE CODE END *********

Nov 3 '06 #1
0 1553

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
8527
by: blackstaronline.net | last post by:
Hi, I'm using .NET V2.0 I have been using un-compiled code behind pages for my .net app using "Src" in the @Page. I randomly get an Initialized Culture error when trying to access the page. Many times I can simply refresh and the app runs fine. I have not messed with the culture setting at all. At first I thought it was the server so I...
1
6534
by: Mohammed Banat | last post by:
All my pages work just fine on development, but as soon as I publish (deploy), I always get Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.default_aspx'. This happens for every page. Please help. I have seen multiple questions from people on this same issue, but with no answers.
3
7199
by: Mauricio Pires | last post by:
All my pages work just fine on development, but as soon as I publish (deploy) to a W2K Server with .Net Framework 2.0 , I always get Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.default_aspx'. This happens for every page and after I created a MasterPage. Please help. I have seen multiple questions from...
0
1326
by: Abdul | last post by:
Hello, I am having an issue when trying to move an application from a demo machine into a development environment. I am getting an error when using <%@ Register TagPrefix %to register a user control. The error I am getting is BC30456 error InitializeCulture() not a member of... I know the code is correct because it is an exact copy of...
0
7888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8159
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8314
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7922
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8185
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6571
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5689
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
1416
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.