Click here to Skip to main content
11,637,176 members (69,455 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Telerik MVC3
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
Posted 13-Jul-11 23:36pm
Edited 13-Jul-11 23:37pm
Prerak Patel141.2K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First guess - Does your host machine have the Telerik assemblies?
For specific and quick response, post this to Telerik forum[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 stibee 313
1 jyo.net 295
2 OriginalGriff 295
3 himanshu agarwal 184
4 Sergey Alexandrovich Kryukov 154
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,513
2 Mika Wendelius 6,922
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 14 Jul 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100