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

Forums / Bugs & Issues / CruiseControl.Net or NAnt

CruiseControl.Net or NAnt

4 posts, 0 answered
  1. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    30 Nov 2007
    Link to this post
    Hi All,

    Is anybody here using CruiseControl.Net or NAnt  to compile and deploy your Sitefinity project? CruiseControl.Net  will compile each ASCX file  to a .compiled and .Dll in bin directory, such as ~\usercontrols\Airport\airport.ask to ~\bin\airport.ascx.df12b712.compiled.  here is the airport.ascx.df12b712.compiled looks like:
    <?xml version="1.0" encoding="utf-8"?>  
    <preserve resultType="3" virtualPath="/test/UserControls/Airport/Airport.ascx" hash="57a083b5a" filehash="b9bc4635d9e1e6fd" flags="110000" assembly="App_Web_airport.ascx.df12b712" type="ASP.usercontrols_airport_airport_ascx">  
        <filedeps> 
            <filedep name="/test/UserControls/Airport/Airport.ascx" /> 
            <filedep name="/test/UserControls/Airport/Airport.ascx.cs" /> 
        </filedeps> 
    </preserve> 

    The Airport control works perfectly in DLL mode only, but not all the Sitefinity Controls, such as ~/Sitefinity/Admin/Pages.aspx, there is following error:
    A required control was not found in the template for "Telerik.Cms.Web.UI.PagePermissionsPanel+LayoutContainer". The control must be assignable form type "Telerik.Cms.Web.UI.PermissionSet" and must have ID "PermissionSet1".   
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.   
     
    Exception Details: System.Web.HttpException: A required control was not found in the template for "Telerik.Cms.Web.UI.PagePermissionsPanel+LayoutContainer". The control must be assignable form type "Telerik.Cms.Web.UI.PermissionSet" and must have ID "PermissionSet1".  
     
    Source Error:   
     
     
    Line 54:            else  
    Line 55:            {  
    Line 56:                this.pageEditor.Select(Guid.Empty);  
    Line 57:                this.siteMap.Selected = Guid.Empty;  
    Line 58:            }  
       
     
    Source File: s:\Build Convex Files\test\Source\Sitefinity\Admin\Pages.aspx.cs    Line: 56   
     
    Stack Trace:   
     
     
    [HttpException (0x80004005): A required control was not found in the template for "Telerik.Cms.Web.UI.PagePermissionsPanel+LayoutContainer". The control must be assignable form type "Telerik.Cms.Web.UI.PermissionSet" and must have ID "PermissionSet1".]  
       Telerik.Cms.Web.UI.GenericContainer`1.FindControl(Type requiredType, String id, Boolean required) +234  
       Telerik.Cms.Web.UI.GenericContainer`1.FindRequiredControl(String id) +66  
       Telerik.Cms.Web.UI.LayoutContainer.get_PermSet() +35  
       Telerik.Cms.Web.UI.PagePermissionsPanel.CreateChildControls() +214  
       System.Web.UI.Control.EnsureChildControls() +87  
       Telerik.Cms.Web.UI.PagePermissionsPanel.Select(ISecured sec) +18  
       Telerik.Cms.Web.UI.PageEditor.OnRootSelected(PageSelectedEventArgs args) +223  
       Telerik.Cms.Web.UI.PageEditorBase.SelectRoot() +118  
       Telerik.Cms.Web.UI.PageEditorBase.Select(Guid pageId) +89  
       Admin_Pages.Page_Load(Object sender, EventArgs e) in s:\Build Config Files\test\Source\Sitefinity\Admin\Pages.aspx.cs:56  
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15  
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34  
       System.Web.UI.Control.OnLoad(EventArgs e) +99  
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +16  
       Admin_Pages.OnLoad(EventArgs e) in s:\Build Config Files\test\Source\Sitefinity\Admin\Pages.aspx.cs:34  
       System.Web.UI.Control.LoadRecursive() +47  
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061  
     
       
     

    It is Sitefinity 3.1 SP1 and replace the search section in web.config file and all the telerik dlls and templates are there. If  runing the website from  Source code only(not dll only version), everything is perfect. But if using CruiseControl.Net to compile everything to Dlls, the Sitefinity Admin part  is not working properly.

    Anybody has same trouble? Welcome any input.

    Thanks in Advance!
  2. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    30 Nov 2007
    Link to this post
    In fact we use MSBuild with CruiseControl.Net.

    Thanks!
  3. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    30 Nov 2007
    Link to this post
    Bottom line, is the Precompilation code(just dlls, no source code)  will work for Sitefinity project? Any body tried?
  4. May
    May avatar
    36 posts
    Registered:
    12 Apr 2007
    02 Dec 2007
    Link to this post
    Problem solved!

    Thanks!
Register for webinar
4 posts, 0 answered