The type initializer for 'Telerik.Web.RenderModesCache' threw an exception

3 posts, 0 answers
  1. Viktor
    Viktor avatar
    2 posts
    Member since:
    Sep 2014

    Posted 01 Sep 2014 Link to this post

    Hi everyone, 

    When I deployment asp.net 4.0 web site on IIS 6.0 server I have error:

    [TypeInitializationException: The type initializer for 'Telerik.Web.RenderModesCache' threw an exception.]
    Telerik.Web.RenderModesCache.GetViewDescriptors() +0
    Telerik.Web.UI.RadDataBoundControl.GetViewScriptReference() +81
    Telerik.Web.UI.RadDataBoundControl.GetScriptReferences() +80
    Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IScriptControl.GetScriptReferences() +13
    System.Web.UI.ScriptControlManager.AddScriptReferenceForScriptControl(List`1 scriptReferences, IScriptControl scriptControl) +41
    System.Web.UI.ScriptControlManager.AddScriptReferencesForScriptControls(List`1 scriptReferences) +92
    System.Web.UI.ScriptManager.RegisterScripts() +129
    System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
    System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8897866
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716

    web.config has next configuration:

        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="Telerik.Web.UI"/>
          </assemblies>
        </compilation>

         <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
          <controls>
            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
          </controls>
        </pages>

    With IIS Express 7.0 the web site working correctly.

    What may be cause of the problem?
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 03 Sep 2014 Link to this post

    Hi Viktor,

    What is the Trust Level in the IIS 6.0 environment? Is the problem reproducible with Full trust? It might be something connected to the trust because we have no known issues with respect to this functionality.

    Regards,
    Genady Sergeev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Viktor
    Viktor avatar
    2 posts
    Member since:
    Sep 2014

    Posted 03 Sep 2014 in reply to Genady Sergeev Link to this post

    Hi Genady,

    On Windows Server 2003 with IIS 6.0 the problem has no solution, because our telerik libraries based on .net 4.5 and win server 2003 don't support .net  version higher than 4.0.

    But I can change hosting on Windows Server 2008 and the error disappeared.

    Thank you for your attention to the question.
Back to Top