troubleshooting Question

Master pages Need to Derive from Obout DLL with Code Behind

Avatar of brandonmonahan
brandonmonahan asked on
7 Comments2 Solutions1215 ViewsLast Modified:
I have a master page (I am actually nesting masters - it is my top level master) that is using a code behind page that needs to inherit from the Obout AJAX page (as described here:  The problem is, I can't make it work.  It seems no matter what I try to do there is an error.  Here is what I have:

In the m.master page (my top level master) I have the following:
<%@ Master Language="VB" CodeFile="m.master.vb" Inherits="masterpages_m" %>
<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>
<%@ Register Assembly="obout_Combobox_NET" Namespace="OboutInc.Combobox" TagPrefix="obout" %>

In the code behind file:
Partial Class masterpages_m : Inherits OboutInc.oboutAJAXPage

    'Inherits System.Web.UI.MasterPage

End Class

Which gives me the error:
Server Error in '/' Application.

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:  
Line 2:  Partial Class masterpages_m : Inherits OboutInc.oboutAJAXPage
Line 3:  
Line 4:      'Inherits System.Web.UI.MasterPage

Source File: D:\inetpub\vhosts\\httpdocs\masterpages\m.master.vb    Line: 2

This is probably simple - I am an old ASP programmer finally making the switch - and perhaps biting off more than I can chew on the first time out.  Let me know your thoughts.

P.S. - I have tried changing the Inherits tag in the m.master page and got the expected error that it needs to match up with the code behind (that is my summary anyway).

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros