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

Cannot use Telerik intellisense User Controls, when these Views are in Class library

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ivan
Top achievements
Rank 1
ivan asked on 12 Jun 2013, 03:26 PM
I am having a big problem here. I have a class lib and a user control in there but I can not use the telerik intellisense the .ascx file. I did everything here http://www.telerik.com/community/forums/aspnet-mvc/general/cannot-use-telerik-intellisense-in-razor-views-when-these-views-are-in-class-library.aspx but this is not working. I have asp:.. intellisense but no intellisense for the telerik dll. Plese help me with this because It is a real stopper for me. Here is my web config file that I am placing in the class lib root and in the folder where is my user control. I also added the Telerik.Web.UI.dll to the GAC

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation>
      <assemblies>
        <add assembly="Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </controls>
      <namespaces>
        <add namespace="Telerik.Web.UI" />
      </namespaces>
    </pages>
  </system.web>
</configuration>

Please give me the exact steps that I should do.

1 Answer, 1 is accepted

Sort by
0
ivan
Top achievements
Rank 1
answered on 13 Jun 2013, 08:17 AM
I've managed to fix it. You just have to register the dll in the ascx file with full name like this

<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" %>

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