Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

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)

Why do I get this error?  I just converted my probject from asp 1.1 to 2.0 so I guess there is some cleanup?

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).

aspx page:
------------

<%@ Reference Page="~/catering.aspx" %>
<%@ Register TagPrefix="HD" TagName="HEADER_JS" Src="header_javascript.ascx" %>
<%@ Register TagPrefix="HD" TagName="HEADER" Src="header.ascx" %>
<%@ Register TagPrefix="FT" TagName="FOOTER" Src="footer.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Inherits="elbalazo.catering_form" CodeFile="catering_form.aspx.vb" %>
<%@ Register TagPrefix="cc1" Namespace="CalendarControl" Assembly="Calendar" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
...

code-behind:
---------------

Imports System
Imports System.Configuration
Imports System.Data
Imports System.Text
Imports System.Data.SqlClient
Imports System.Web.Mail


Namespace elbalazo


Partial Class catering_form
    Inherits System.Web.UI.Page

    Dim DS As DataSet
...
Avatar of aki4u
aki4u

Hi,

try this:

stop the server and delete temporary ASP.NET files.
start the server
Avatar of dba123

ASKER

this isn't my server...it's an ISP that I pay for...
ASKER CERTIFIED SOLUTION
Avatar of bsdotnet
bsdotnet

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial