This question is locked. New answers and comments are not allowed.
Hi,
I have upgraded my project from "2010.2.930" to "2010.3.1110" version. I'm getting the below error on compiling the project.
"The type or namespace name 'ServiceLocator' does not exist in the namespace 'Telerik.Web.Mvc.Infrastructure' (are you missing an assembly reference?) "
Is this a bug? Any suggestions to fix the issue?
Regards,
Uma
I have upgraded my project from "2010.2.930" to "2010.3.1110" version. I'm getting the below error on compiling the project.
"The type or namespace name 'ServiceLocator' does not exist in the namespace 'Telerik.Web.Mvc.Infrastructure' (are you missing an assembly reference?) "
<% var varAuthorization = Telerik.Web.Mvc.Infrastructure.ServiceLocator.Current.Resolve <
Telerik.Web.Mvc.Infrastructure.INavigationItemAuthorization
>(); %>
<%= Html.Telerik().Menu()
.Name("Menu")
.BindTo("SiteMap")
.ItemAction(item =>
{
bool isAccessible = true;
foreach (var child in item.Items)
{
isAccessible = false;
if (child.IsAccessible(varAuthorization, ViewContext))
{
isAccessible = true;
break;
}
item.Visible = isAccessible;
}
})
.ClientEvents(events => events.OnSelect("onSelect"))
%>
Is this a bug? Any suggestions to fix the issue?
Regards,
Uma