BC30456: 'InitializeCulture' error when compiling new project page

J

jmawebco

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.DataSet1TableAdapters
Line 2:
Line 3: Partial Public Class AllCategories

Source File: C:\Documents and Settings\jaime.cruz.UDG\My
Documents\Visual Studio
2005\Projects\IUSProductivity\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="AllCategories.aspx.vb"
Inherits="IUSProductivity.AllCategories" %>

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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>All Main Categories</title>
<link href="styleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataGrid ID="GridView1" runat="server">
<HeaderStyle CssClass="HeaderStyle" BackColor="#507CD1"
Font-Bold="True" ForeColor="White" />
<ItemStyle CssClass="RowStyle" BackColor="#EFF3FB" />
<AlternatingItemStyle CssClass="AlternateRowStyle"
BackColor="White" />
<FooterStyle BackColor="#507CD1" Font-Bold="True"
ForeColor="White" />
<EditItemStyle BackColor="#2461BF" />
<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True"
ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White"
HorizontalAlign="Center" />
</asp:DataGrid>
</div>
</form>
</body>
</html>
****** END ASPX FILE CODE ******

****** CODE FILE CODE *********
Imports IUSProductivity.DataSet1TableAdapters

Partial Public Class AllCategories
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim MainCatAdapter As New tblMainCategoryTableAdapter
GridView1.DataSource = MainCatAdapter.GetData
GridView1.DataBind()
End Sub

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top