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

Forums / Bugs & Issues / Could not resolve type for tag "asp:Silverlight".

Could not resolve type for tag "asp:Silverlight".

4 posts, 1 answered
  1. John Dentler
    John Dentler avatar
    12 posts
    Registered:
    23 Apr 2010
    23 Apr 2010
    Link to this post

    Happens when clicking the name link for an image in any library under Modules \ Images & Documents


    Could not resolve type for tag "asp:Silverlight". Make sure the proper namespace is registered.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: Could not resolve type for tag "asp:Silverlight". Make sure the proper namespace is registered.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: Could not resolve type for tag "asp:Silverlight". Make sure the proper namespace is registered.]
       Telerik.Cms.Web.UI.Templates.TemplateParser.ResolveType(String tag) +501
       Telerik.Cms.Web.UI.Templates.TemplateParser.CreateObjectBuilder(HtmlChunk chunk) +90
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +70
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +141
       Telerik.Cms.Web.UI.Templates.RootBuilder..ctor(ResourceManager resourceManager, String html, ObjectBuilder parent) +23
       Telerik.Cms.Web.UI.Templates.TemplateParser.FinalizeCurrentBuilder() +259
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +340
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +141
       Telerik.Cms.Web.UI.Templates.RootBuilder..ctor(ResourceManager resourceManager, String html, ObjectBuilder parent) +23
       Telerik.Cms.Web.UI.Templates.TemplateParser.FinalizeCurrentBuilder() +259
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +340
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +141
       Telerik.Cms.Web.UI.Templates.ObjectBuilder..ctor(ObjectBuilder parent, String html, ResourceManager resourceManager) +43
       Telerik.Cms.Web.UI.Templates.RootBuilder..ctor(ResourceManager resourceManager, String html) +21
       Telerik.Framework.Web.StringTemplate..ctor(String declaration, ResourceManager resourceManager, String templateName) +54
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +640
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +449
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateLayoutTemplate(Type assemblyInfo, Type localizationAssemblyInfo) +147
       Telerik.Cms.Web.UI.ViewModeControl`1.get_LayoutTemplate() +41
       Telerik.Cms.Web.UI.ViewModeControl`1.get_Container() +59
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +54
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.Control.PreRenderRecursiveInternal() +61
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
  2. John Dentler
    John Dentler avatar
    12 posts
    Registered:
    23 Apr 2010
    23 Apr 2010
    Link to this post
    Sitefinity 3.7
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Apr 2010
    Link to this post
    Hi John Dentler,

    Add the following line in your web.config file, between <controls> node

    <add assembly="System.Web.Silverlight" namespace="System.Web.UI.SilverlightControls" tagPrefix="asp"></add>

    Make sure that you have System.Web.Silverlight.dll in your bin folder and it is referenced to the project.

    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.
    Answered
  4. John Dentler
    John Dentler avatar
    12 posts
    Registered:
    23 Apr 2010
    23 Apr 2010
    Link to this post
    Beautiful, quick and easy. Thanks for the fast response, guys!
Register for webinar
4 posts, 1 answered