+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Integrate Corp Master Pages with Sitefinity

Integrate Corp Master Pages with Sitefinity

6 posts, 0 answered
  1. Michael Raynal
    Michael Raynal avatar
    9 posts
    Registered:
    18 Nov 2008
    13 May 2010
    Link to this post

    I would like Sitefinity to integrate with our corporate Master Pages. On the surface it looks straight forward however our Corporate Master page are compiled from several projects which need code behind as well as using Telerik dll's. My Challenge is the Corporate site uses a version higher than what Sitefinity 3.7 uses. I attempted to solve this by loading both versions of the Telerik.Web.UI.dll into the GAC, removed references from the bin to one of the versions.  "As I understand it you cannot have two versions of the same named dll in the bin". I converted the Sitefinity website to a webapplication, added references to the corporate dll's and controls. All was well however several of the desinger.cs files through compile errors. So I added  the following to the machine.config

     

     

    <

     

    add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

     

    <

     

     

    add assembly="Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

     

     

     

     

    I removed the assembly references but now can't get SF to work. Unfortunately the login throws this error.

     Line 1:  <%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_Login" Theme="" Codebehind="Login.aspx.cs" %>
    Line 2:  <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="cc1" %>
    Line 3:

    Any help is appreciated.
    Mike
        

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 May 2010
    Link to this post
    Hi Michael Raynal,

    Thank you for using our services.

    Generally you can maintain two versions of one DLL. However to do this you can put them in separate directories. For example you can create a sub-directory of your bin one and put the different version of Telerik.WebUI there. Then however you have to set the <probing> element under <assemblyBinding> configuration section in your web.config. In the privatePath attribute you will enumerate the directories that might contain assemblies for your application:
    <configuration>
       <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
             <probing privatePath="bin;bin\subbin;bin2"/>
          </assemblyBinding>
       </runtime>
    </configuration>

    You can also upgrade the RadControls for ASP.NET Ajax of your Sitefinity website to match the ones which you use in your other projects. Instructions can be found here.

    Could you please paste the error details on the error you are getting? The markup you have pasted does not contain the actual error message, just the source.

    Kind regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Michael Raynal
    Michael Raynal avatar
    9 posts
    Registered:
    18 Nov 2008
    14 May 2010
    Link to this post
    Thank you Radoslav...I'll give it a try. Here is the entire error message.

     

    Server Error in '/' Application.

    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: Could not load type 'Admin_Login'.

    Source Error:

    Line 1: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_Login" Theme="" Codebehind="Login.aspx.cs" %>Line 2:  <%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="cc1" %>
    Line 3:  

    Source File: /Sitefinity/Login.aspx    Line: 1


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
  4. Michael Raynal
    Michael Raynal avatar
    9 posts
    Registered:
    18 Nov 2008
    14 May 2010
    Link to this post
    Radoslav...does it matter if I do your suggestions above with Sitefinity as a website or must it be a Webapplication?
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    15 May 2010
    Link to this post
    Hi Michael Raynal,

    The error you are getting is because you are trying to use CodeBehind. In order to use CodeBehind you must first compile the class from which your user control is inheriting. This is an old .NET concept. The newer one is CodeFile which works the same way, however the code file does not need to be compiled.

    Kind regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Michael Raynal
    Michael Raynal avatar
    9 posts
    Registered:
    18 Nov 2008
    21 May 2010
    Link to this post
    I've now been able to access my corp master page usign a binding redirect to the version of Telerik tools our Corp site uses (Thank you Scott Mitchell!!) . Now I find when I edit the template in Sitefinity I cannot add any controls to my template. The 'Add Controls' does not even display. 

    Thank you in advance,
    Mike
Register for webinar
6 posts, 0 answered