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

Telerik namespace error on MVC3 project

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brady
Top achievements
Rank 1
Brady asked on 14 Jul 2011, 10:17 AM
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>

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

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Jul 2011, 11:22 AM
Hi Brady,

Is ASP.NET MVC 3 installed on the web server? This can happen if some of the assemblies referred by Telerik.Web.Mvc.UI.dll are not installed and cannot be found. You can try bin deploying ASP.NET MVC to see if this will make a difference.

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
General Discussions
Asked by
Brady
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or