2012-05-28 1 views
-1

RadScheduler를 프로젝트에 추가 할 때이 오류가 발생합니다. 제어 코드 블록을 포함하고 있기 때문에 내가 비주얼 스튜디오 2010 RadControls 도움컨트롤에 코드 블록 (예 : <% ... %>)이 포함되어있어 Controls 컬렉션을 수정할 수 없습니다. Telerik Application

Controls 컬렉션 2011 년 2 분기 감사를 사용하고 수정할 수 없습니다 (즉, <% ... %>).

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: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).] 
    System.Web.UI.ControlCollection.Add(Control child) +8828175 
    Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url) +486 

    [HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.] 
     Telerik.Web.SkinRegistrar.RegisterCssReference(Page _page, Control _control, String _url) +557 
     Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control) +1563 
     Telerik.Web.UI.RadDataBoundControl.RegisterCssReferences() +74 
     Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +50 
     Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +47 
     Telerik.Web.UI.RadScheduler.OnPreRender(EventArgs e) +131 
     System.Web.UI.Control.PreRenderRecursiveInternal() +103 
     System.Web.UI.Control.PreRenderRecursiveInternal() +175 
     System.Web.UI.Control.PreRenderRecursiveInternal() +175 
     System.Web.UI.Control.PreRenderRecursiveInternal() +175 
     System.Web.UI.Control.PreRenderRecursiveInternal() +175 
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496 

답변

0

< %%> 블록이있는 경우 컨트롤 트리를 수정할 수 없습니다. 추가 정보는 this 도움말 항목을 확인하십시오.

관련 문제