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

[Solved] Unable to get started: Compilaton Error

2 Answers 50 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.
Chad Thiele
Top achievements
Rank 1
Chad Thiele asked on 07 Dec 2009, 11:11 AM
I get the following error when trying to run the page for the first time:

CS1061: 'Telerik.Web.Mvc.UI.ScriptRegistrarBuilder' does not contain a definition for '__w' and no extension method '__w' accepting a first argument of type 'Telerik.Web.Mvc.UI.ScriptRegistrarBuilder' could be found (are you missing a using directive or an assembly reference?)

I've already setup a reference, name space in the web.config, copied the scripts and css to their directories and then added :

<

    Html.Telerik().StyleSheetRegistrar() 
        .DefaultGroup(group => group.Add("telerik.common.css") 
                                    .Add("telerik.vista.css")) 
        .Render();  
%> 

to the <head> section of my master page. Did I miss a step?





2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Dec 2009, 08:37 AM
Hello Chad Thiele,

 Adding the namespace "Telerik.Web.Mvc.UI" and a reference to the Telerik.Web.Mvc.dll assembly should be enough to get started. I have attached a sample MVC web application for your reference.


I hope this helps,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chad Thiele
Top achievements
Rank 1
answered on 08 Dec 2009, 10:45 PM
Thanks... turns out that when there is a slight error in how the extension is used, it throws machine level compiler errors. I corrected the issue, cleared temp compilated files and rebuilt the project - it's working now.

Thanks again.
Tags
General Discussions
Asked by
Chad Thiele
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Chad Thiele
Top achievements
Rank 1
Share this question
or