This is a migrated thread and some comments may be shown as answers.

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

2 Answers 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Viktor
Top achievements
Rank 1
Viktor asked on 01 Sep 2014, 10:07 AM
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 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 03 Sep 2014, 08:25 AM
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.

 
0
Viktor
Top achievements
Rank 1
answered on 03 Sep 2014, 08:40 AM
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.
Tags
General Discussions
Asked by
Viktor
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Viktor
Top achievements
Rank 1
Share this question
or