Problem with circular reference

2 posts, 0 answers
  1. Carlos Eduardo Nogueira
    Carlos Eduardo Nogueira avatar
    15 posts
    Member since:
    Jul 2009

    Posted 13 Aug 2009 Link to this post

    Hi,

    I'm using telerik controls in a project and I have a problem with circular reference in a master pages.
    I have a master page (we can call "father master page") using some objects of telerik, and also I have another master page (we can call "son master page") that use telerik controls too. The "son master page" inherit "father master page" and it's in a paste (on that structure). The pages I have on that paste are using the "son master page".

    So, when I try deploy the website, the visual studio indicate a problem with circular reference in a "son master page" at the first line, on MasterPageFile attribute. If I remove this attribute, I can deploy the website.

    I realized a search about this subject and tried something like as you can see below:

    - to remove @Register tag of master pages and pages and add the references in web.config by <controls> element;
    - to put true for batch attribute of <compilation> element;
    - to remove the keyword Register from the tags on master pages and pages.

    I will put the html code of "father master page" and "son master page":
    "FATHER MASTER PAGE":
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="GENTE.master.cs" Inherits="GENTE" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title> .:: GENTE - Gestão Eletrônica Normalizada de Terceiros e Empregados ::. </title>
        
        <!-- Includes -->
        <uc1:HeadTag ID="HeadTag1" runat="server" />     
            
        <asp:ContentPlaceHolder id="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                </Scripts>
            </telerik:RadScriptManager>
            
            <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Telerik" DecoratedControls="All" />
            
            <%--dsd--%>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              
              <!-- Cabeçalho -->
                <tr>
                    <td  align="left">
                        Menu Superior -
                        <a href="/GENTEv1/Protegidos/Empresas/Default.aspx">Empresas</a>&nbsp;&nbsp;
                        <a href="/GENTEv1/Protegidos/Pessoas/Default.aspx">Pessoas</a>&nbsp;&nbsp;
                        <a href="/GENTEv1/Protegidos/Administracao/Default.aspx">Administração</a>&nbsp;&nbsp;
                    </td>
                    <td  align="right">
                        Patrocinador: <asp:Label ID="lblPatrocinador" runat="server" Text=""></asp:Label>
                        / Prestador: <asp:Label ID="lblPrestador" runat="server" Text=""></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;<a href="<%= Page.ResolveUrl("~/SelectPatPrest.aspx") %>" >Selecionar</a>&nbsp;&nbsp;
                    </td>
                </tr>
                <tr>
                    <td><img src="space.jpg" width="4" height="2" /></td>
                </tr>
              <!-- Cabeçalho -->
              
              <tr>
                <td colspan="2">
                    
                    <!-- -->
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td id="HeadBar" colspan="4" height="5"></td>
                        </tr>
                        <tr>
                            <td width="7"></td>
                            <td width="250" height="500"  valign="top" class="BordaFundo" id="Lateralbar">
                                <div class="Collapse"></div>
                                <table width="250" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td height="10"><img src="../_images/space.jpg" width="3" height="1"></td>
                                    </tr>
                                    <tr align="left">
                                        <td width="10"></td>
                                        <td height="30" valign="middle">
                                                
                                            <!-- INICIO - Lateral -->
                                            <asp:ContentPlaceHolder id="cphMenu" runat="server">
                                            
                                            </asp:ContentPlaceHolder>
                                            <!-- FIM - Lateral -->
                                
                                        </td>
                                        <td width="10">&nbsp;</td>
                                    </tr>
                                </table>
                            
                            </td>
                            <td width="3"><img src="../_images/space.jpg" width="3" height="2"></td>
                            <td valign="top" align="left" class="Borda">
                            
                                <!-- Menu - Titulo -->
                                
                                                
                                <!-- INICIO - Conteúdo -->
                                <asp:ContentPlaceHolder id="cphConteudo" runat="server">
                                
                                </asp:ContentPlaceHolder>
                                <!-- FIM - Conteúdo -->
                                <br />
                            </td>
                        </tr>
                    </table>
                    <!-- -->
                    
                </td>
              </tr>
            </table>
            <%--dfdsf--%>
            
        </div>
        </form>
    </body>
    </html>

    "SON MASTER PAGE":
    <%@ Master Language="C#" MasterPageFile="~/GENTE.master" AutoEventWireup="true" CodeFile="GENTE_Emp.master.cs" Inherits="Protegidos_Empresas_GENTE_Emp" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>

    <asp:Content ID="Content3" ContentPlaceHolderID="cphMenu" Runat="Server">
        
        <asp:ContentPlaceHolder id="cphSubMenu" runat="server">
        
            <telerik:RadPanelBar id="RadPanelBar1" runat="server" style="float: left" skin="Telerik">
            </telerik:RadPanelBar>
        
        </asp:ContentPlaceHolder>

    </asp:Content>


    <asp:Content ID="Content2" ContentPlaceHolderID="cphConteudo" Runat="Server">

            <asp:ContentPlaceHolder id="cphSubConteudo" runat="server">
            
            </asp:ContentPlaceHolder>

    </asp:Content>

    Anyone can help me to solve this problem?







  2. Carlos Eduardo Nogueira
    Carlos Eduardo Nogueira avatar
    15 posts
    Member since:
    Jul 2009

    Posted 11 Sep 2009 Link to this post

    Nobody?
Back to Top