首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IIS6.0上的Deployment Telerik.Web

IIS6.0上的Deployment Telerik.Web
EN

Stack Overflow用户
提问于 2014-09-01 18:19:29
回答 1查看 239关注 0票数 0

在IIS6.0服务器上部署IIS4.0网站时,出现以下错误:

代码语言:javascript
复制
[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有下一个配置:

代码语言:javascript
复制
<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>

使用IIS Express 7.0,网站可以正常工作。

问题的原因可能是什么?

EN

回答 1

Stack Overflow用户

发布于 2014-09-09 21:50:23

请确保您没有尝试使用针对.NET 4.5构建的程序集(Telerik提供了这些程序集)。如果您的服务器拥有IIS6,那么它很可能是没有.NET 4.5的Windows Server2003。您应该让您的应用程序引用Telerik程序集的.NET 4.0版本(您可以从安装的Bin40文件夹中获取它们)。

正如DanM在评论中所说的那样-如果您引用的是.NET 4版本,请确保安装了.NET 4.0。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25603615

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档