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

[Solved] Namespace Problem with Telerik.Web.Mvc.

1 Answer 61 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.
Jeff
Top achievements
Rank 1
Jeff asked on 28 Mar 2012, 06:14 PM
Hi,

I'm having a simple problem with the Telerik MVC controls.  I've added the mvc-3 reference to my project and I can see 'Telerik.Web.Mvc' in the References folder.  I can even open it in the object browser and see a bunch of classes, etc.  The problem is when I try to add the 'ScriptRegistrar()' function to my Site.master page.  I have the following code there, which I copied from the Getting Started guide with the addition of the fully qualified namespace:

...
<%= Telerik.Web.Mvc.UI.Html.Telerik().ScriptRegistrar()%>
</body>


I keep getting the error:
The type or namespace name 'Telerik' does not exist in the namespace 'Telerik.Web.Mvc.UI.Html' (are you missing an assembly reference?)

This tells me that the compiler is seeing the assembly, but the Telerik() part doesn't exist in the ...Html. namespace.  I can see this is also the case when I use the object browser on the Telerik.Web.Mvc

What am I missing?

--Jeff

1 Answer, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 28 Mar 2012, 06:35 PM
Sorry for the reply-to-self,

I just realized that I'm working with a 'Dynamic Data Entities Web Application', not a ASP.NET MVC Web Application.  I'm not sure if it makes a difference.

I'm also not sure what product I should be looking at.  I want to add a Gantt chart to my DDE Web Application.  Should I look at the 'Reporting', 'ASP.NET AJAX' or 'ASP.NET MVC' product?

--Jeff
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Share this question
or