Ho un user control il cui codice è separato in una pagina foto.vb che inizia così:

imports System
imports System.web
imports System.web.ui
imports System.web.ui.webcontrols
imports System.Data
imports System.IO
imports System.Drawing
imports microsoft.visualbasic

public MustInherit class codebehind1 : inherits page

public pagesize As Integer
Const numero_pagine=3
public pagecount As Integer
public tot As integer

*******************
Nell'user control ho perciò inserito come prima riga:

<%@ Control Language="vb" Inherits="codebehind1" Src="foto.vb" %>


louser control è messo in una pagina con la direttiva:
<%@ Register TagPrefix="uc0" TagName="foto" Src="foto.ascx" %>


Però non va:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: 'codebehind1' is not a valid base class because it does not extend class 'System.Web.UI.UserControl'.

Source Error:


Line 1: <%@ Control Language="vb" Inherits="codebehind1" Src="foto.vb" %>
Line 2: <div align="right">
Line 3: <table height="20" width="100%">

Cosa significa quell'errore e come si fa??Grazie