MVC3项目上的Telerik命名空间错误 [英] Telerik namespace error on MVC3 project

查看:116
本文介绍了MVC3项目上的Telerik命名空间错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用某些Telerik MVC扩展的MVC3项目.在VS 2010内置Web服务器上,它可以很好地进行调试,但是当我将其部署到主机上的IIS时,会出现以下编译错误:

CS0246: The type or namespace name ''Telerik'' could not be found (are you missing a using directive or an assembly reference?)

该错误发生在以下代码中的第86行上,该代码来自站点根目录web.config.我在Views/web.config和根配置中都有名称空间.

I have an MVC3 project that uses some Telerik MVC extensions. It works fine on the VS 2010 built-in web server, for debugging, but when I deploy it to IIS on my host, I get the following compilation error:

CS0246: The type or namespace name ''Telerik'' could not be found (are you missing a using directive or an assembly reference?)

The error occurs on line 86 in the code below, from the site root web.config. I have the namespace in both the Views/web.config and the root config.

Line 84:                 <add namespace="System.Web.Routing" />
Line 85:                 <add namespace="System.Web.WebPages" />
Line 86:                 <add namespace="Telerik.Web.Mvc.UI" />
Line 87:             </namespaces>
Line 88:         </pages>



任何想法可能有什么问题吗?该程序集绝对可以在主机服务器上的bin文件夹中使用.



Any ideas what could be wrong? The assembly is definitely available in the bin folder on the host server

推荐答案

首先猜测-您的主机上是否装有Telerik程序集?
要获得具体而快速的响应,请将其发布到 Telerik论坛 [ ^ ].
First guess - Does your host machine have the Telerik assemblies?
For specific and quick response, post this to Telerik forum[^].


这篇关于MVC3项目上的Telerik命名空间错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆