asp.net de bir hata alıyorum. Hata kodum şu :

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

Bu hataya sebebiyet veren olay da şu :

Codebehind yerine CodeFile kullanıyorum. Asp.net 2.0 ozelliği.

index.aspx
default.aspx.vb

şeklinde iki dosyam var.

index.aspx in en ustu şoyle :



default.aspx.vb dosyasının iceriği de aşağıdaki gibi..


Partial Class Default_aspx

Inherits System
Inherits System.Web.UI
Inherits System.WebUI.WebControls
Inherits System.Web.UI.HtmlControls
Inherits System.Data.SqlClient
Inherits System.Data
Inherits System.Web.Mail

sub page_load
''''burada kodlarım var.Kodlarda sorun yok
end sub

end class

Şimdi bu kodlara gore bu hata mesajını neden alıyorum sizce?