Razor Generator with a Views web.config file?

Jan 12, 2012 at 8:21 PM

I'm having an issue getting the Telerik controls to work, the namespace won't be recognized in the views. Their docs state that I need to put <add namespace="Telerik.Web.Mvc.UI" /> in the <system.web.webPages.razor> section of the view's folder's web.config. I did this for my project and am having no luck.

The namespace is recognized in the base project's views by doing what I mentioned above.

Do the separate assemblies not support their own Views web.config file and not recognize the base project's?

Jan 12, 2012 at 11:22 PM

Looking at the code in AddWebConfigNamespaces.cs, I think the problem is that we only add the namespaces from the root web.config. @pranavkm, can you confirm?

Jan 12, 2012 at 11:28 PM

Yes, I think that's essentially the problem although I wanted to have a look at the code to confirm that.