CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/30/2008 10:44:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 84 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
SidC
Asp.Net User
MasterPage Error: 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).3/30/2008 10:44:19 PM

0/0

Hello,

I have two masterpages in my current project.  One is intended for the restricted pages (those located in the Restricted subfolder) and the other is intended for public pages (those not located in the Restricted folder). 

Pasted below is the first line of my "restricted" master page:

<%@ Master Language="VB" CodeFile="broker.master.vb" Inherits="MasterPage" %>

Note that the masterpage for public pages is MasterPage.master while the masterpage for restricted pages is broker.master. 

I receive the following error when attempting to compile the broker.master file:

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

Can anyone explain what I need to do to correct this error?

Thanks,

Sid 

nKognito
Asp.Net User
Re: MasterPage Error: 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).3/31/2008 5:55:13 AM

0/0

Class name that defined in broker.master.vb differs from Inherits="MasterPage" - it should be same one.

Amanda Wang - M
Asp.Net User
Re: MasterPage Error: 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).4/1/2008 6:52:15 AM

0/0

Hi,

From your description we can see the name of the master page is broker, you should make sure the inherits of the @ Master directive as same the name, it is not a type.

Please try:

<%@ Master Language="VB" CodeFile="broker.master.vb" Inherits="broker" %>
Hope it helps

 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
MasterPage Error: Make sure that the class defined in this code ... MasterPage Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base ...
Make sure that the class defined in this code file matches the ... 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 ...
How to use a textbox control on content page in master page - ASP Free ... class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). ...
CodeProject: Using Meta Tags with Master Pages in ASP.NET. Free ... May 24, 2007 ... Compiler error - make sure this code file matches the 'inherits' ... and that it extends the correct base class (e.g. Page or UserControl). ...
CalendarExtender popup out of position in IE7 - asp.net_ajax.asp ... masterpage error: 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 ...
Understanding Page Inheritance in ASP.NET 2.0 - Rick Strahl's Web Log Error 4 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 ...
ASP.NET VB: How to properly use Includes?? : includes, asp, can, use Compilation Error: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. ...
.NET ASP Page 27 - Bytes Site Map NET 2.0) · 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 ...
Environmental Protection Agency: dyno750 error 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 ...
.Net Interview Questions error 36 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 ...




Search This Site:










dotnetnuke 3.2 treeviewmenu changes?

upgrade steps for dnn 2.0.4 to 2.1.2?

please help.... ugraded 3.0.7 to 3.0.8 --host login not working

ms access 97 2000 database in dotnetnuke?

what files are required for hosted dnn to function?

skins preview images don't display

custom module development

bug - register link does not point to register page! need help!

host settings unavailable after shift to remote

help with modifying cute html providor

dotnetnuke custom module testenvironment ?

dnn vs sharepoint

does asp 2.0 make dnn not necessary?

skinswitcher module

pivotal modules

form application

having problem accessing dotnetnuke's database

http error 403 - forbidden

free textbox

compressing .js and .css files (iis 6.0)

re-building dotnetnuke 3 in vs.net 2003

images not showing up on skin or containers in w2k3 but work fine in xp/2k

dnn 2.0.3 deleted tab still visible

skinning is the best thing since sliced cheese

bug: 3.1 dotnetnuke.search.datastore.getsearchwords

url of simple container skins

dnn-2.0 module actions

dnnswf flash viewer v2

fckeditor value property not getting set

"border" config problem

  Privacy | Contact Us
All Times Are GMT