+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Unrecognized tag prefix or device filter 'telerik'

Unrecognized tag prefix or device filter 'telerik'

6 posts, 0 answered
  1. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    30 Sep 2010
    Link to this post
    I know this has been discussed a lot in these forums, but none of the few solutions I've seen has solved my problem.  Here's my set-up:

    I have Sitefinity 3.7 SP2 installed on my local development machine.

    The web site is an Intranet site, created using the blank project, Sitefinity 3.7 SP2 on an in-house Windows 2008 server with IIS7.

    I have that server's drive permanently mapped on my development PC.

    I open the web site in Visual Studio 2008 SP1 through the File System option from that mapped drive (we do not and will not load FrontPage Extensions on that server--lived through that nightmare for ten years, enough's enough).

    The site runs fine in a browser.  I can access all the Telerik controls in the code-behind files.  But all the Telerik controls in the Source view of a .aspx page give the "Unrecognized tag prefix or device filter 'telerik'" error, and intellisense doesn't work on those controls.

    It looks like everything Telerik is in the web.config file as it should be.  I've copied Telerik.Web.UI.dll into MS Studio 9.0\Common7\IDE\PrivateAssemblies and registered it in the local GAC.  I've added <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> to the pages.

    Nothing has fixed it yet.  Now what?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Sep 2010
    Link to this post
    Hi RSewell,

    Clear ReflectedSchemas and Framework Temporary Files. Make sure that your project has referece to Telerik.Web.UI. You can put the dll in your bin. Rebuild the project and restart visual studio. Register the "telerik" prefix in your web.config

    <pages
            <controls>
              <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
     
    ....
       ....



    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    04 Oct 2010
    Link to this post
    Clear ReflectedSchemas: Done.

    Clear Framework Temporary Files: Can't find any.

    Make sure that your project has referece to Telerik.Web.UI. You can put the dll in your binThere is a reference to all the dlls, including Telerik.Web.Design, but not Telerik.Web.UI. I've manually added it several times, but it never shows up in the reference list.
     
    Register the "telerik" prefix in your web.configIt's already there.

    Rebuild the project and restart visual studio. Rebuilding gives this error:

    Error 208 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. \\<servername>\c$\inetpub\wwwroot\web.config 235 

    The line in error is in <configuration><system.web><healthMonitoring><providers>:
       <add name="Simple Web Event Provider" type="Telerik.Utilities.TextFileWebEventProvider,Telerik.Framework" logFileName="~/App_Data/sitefinity.log"/>

    And the original problem remains.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Oct 2010
    Link to this post
    Hi RSewell,

    You are getting AspNetHostingPermission, because you are running the website in medium trust and the health monitoring is not disabled <healthMonitoring enabled="false".../>

    The only reason for not getting reference to telerik controls is that you have compiled the project to application, you are using a version of Telerik.Web.UI which is build for different version of the ASP.NET Framework versin of your project or your project does not have reference to Telerik.Web.UI.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    04 Oct 2010
    Link to this post
    The version running on the server, created from the blank project, is 3.7 SP2 (I assume this one is for .NET 3.5):   <meta name="Generator" content="Sitefinity 3.7.2057.2:1" />

    The version I installed on my development PC is the same.  The installer's filename is Sitefinity_3_7_2057_standard.exe.

    To add a reference to Telerik.Web.UI, I get to the project's properties, choose Add Reference..., Browse to and highlight the dll, and click OK.  If it doesn't succeed, it doesn't say, but it never shows up on the list of references.  I've tried browsing to the one on my local PC as well as the one in the bin directory of the server.
  6. Martin
    Martin avatar
    1 posts
    Registered:
    03 Oct 2005
    09 Dec 2010
    Link to this post
    In my case, the problem was caused by an old version of Telerik.Web.Design.dll in the bin folder of my web app. Once I deleted this dll the problem went away.

    I'm only referencing Telerik.Web.UI.dll from my web app (via a .refresh file), but somehow/somewhen the old version of Telerik.Web.Design.dll was also added to the bin folder.

    Hope this helps.
Register for webinar
6 posts, 0 answered