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

Forums / General Discussions / Rad File Upload

Rad File Upload

4 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    07 Dec 2010
    Link to this post
    Hi,
    I am using
    <asp:FileUpload ID="VideoUpload" runat="server"></asp:FileUpload> to upload files and I am writing
    "<add key="FAQs.VideoUpload" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/>" in web.config. But I am getting an error

    "

    Could not resolve type for tag "telerik:messagecontrol". 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 "telerik:messagecontrol". 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 "telerik:messagecontrol". Make sure the proper namespace is registered.]
       Telerik.Cms.Web.UI.Templates.TemplateParser.ResolveType(String tag) +347
       Telerik.Cms.Web.UI.Templates.TemplateParser.CreateObjectBuilder(HtmlChunk chunk) +62
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseOpenTag(HtmlChunk chunk) +140
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +43
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +118
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(TemplateParser parser) +14
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(String html) +86
       Telerik.Cms.Web.UI.Templates.TemplateParser.FinalizeCurrentBuilder() +216
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseCloseTag(HtmlChunk chunk) +61
       Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +219
       Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +118
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(TemplateParser parser) +14
       Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(String html) +86
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +616
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +324
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateLayoutTemplate(Type assemblyInfo, Type localizationAssemblyInfo) +104
       Telerik.Cms.Web.UI.ViewModeControl`1.get_LayoutTemplate() +25
       Telerik.Cms.Web.UI.ViewModeControl`1.get_Container() +39
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +44
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

    "
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    07 Dec 2010
    Link to this post
    Hello Asif,

    You have a problem with the Message control. Somewhere you are using Message control incorrectly.
    Here is how you should declared the control

    <telerik:MessageControl runat="server" ID="msgCtrl">
            <ItemTemplate>
                <asp:Literal runat="server" ID="messageText"></asp:Literal>
            </ItemTemplate>
    </telerik:MessageControl>

    Make sure that you have the following lines in the web.config

    <pages >   
           <controls>
             <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
             <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
             <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
             <add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI" />
             <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Cms.Web.UI" />
             <add tagPrefix="telerik" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Framework" />
           </controls>
         </pages>


    Greetings,
    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. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    07 Dec 2010
    Link to this post
    Sorry that wasnt the actual error. The actual error I am getting when I use <asp:FileUpload ID="VideoUpload" runat="server"></asp:FileUpload> to upload files and I am writing
    "<add key="FAQs.VideoUpload" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/>" in web.config.



    Meta field control must implement at least ITextControl.

    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.InvalidCastException: Meta field control must implement at least ITextControl.

    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:

    [InvalidCastException: Meta field control must implement at least ITextControl.]
       Telerik.Cms.Engine.WebControls.ContentMetaFields.SetTextControl(Control ctrl, Object data) +89
       Telerik.Cms.Engine.WebControls.ContentMetaFields.CreateChildControls() +1716
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.WebControls.CompositeControl.get_Controls() +15
       Telerik.Framework.Web.ControlTraverser.GetBreadthFirst(Boolean isRecursionCall) +65
       Telerik.Framework.Web.ControlTraverser.GetBreadthFirst(Boolean isRecursionCall) +171
       Telerik.Framework.Web.ControlTraverser.GetBreadthFirst(Boolean isRecursionCall) +171
       Telerik.Framework.Web.ControlTraverser.GetBreadthFirst(Boolean isRecursionCall) +171
       Telerik.Framework.Web.ControlTraverser.GetBreadthFirst(Boolean isRecursionCall) +171
       Telerik.Framework.Web.ControlTraverser.Next() +33
       Telerik.Framework.Web.ControlTraverser.MoveNext() +5
       Telerik.Cms.Web.UI.GenericContainer.FindTypedControl(String id, Type searchType, TraverseMethod method) +185
       Telerik.Cms.Web.UI.GenericContainer.GetControl(String id, Boolean required, TraverseMethod method) +91
       Telerik.Cms.Engine.WebControls.Admin.ContentItemEdit`1.get_TagsControl() +41
       Telerik.Cms.Engine.WebControls.Admin.ContentItemEdit`1.SetContentForm(IContent cnt) +1871
       Telerik.Cms.Engine.WebControls.Admin.ContentItemEdit`1.InitializeControls(Control viewContainer) +32
       Telerik.Cms.Engine.WebControls.Admin.ContentItemNew`1.InitializeControls(Control viewContainer) +19
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +101
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    07 Dec 2010
    Link to this post
    Hi Asif,

    You cannot use FileUpload control directly as a metakey.  The metafiled control should implement ITextControl interface. You can take a look at these posts.

    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
Register for webinar
4 posts, 0 answered