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

Forums / Bugs & Issues / Profile widget- log out error

Profile widget- log out error

5 posts, 0 answered
  1. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    06 Jul 2011
    Link to this post
    I am receiving the following error anytime I am on a page with the profile widget and I logout of the site.

    A required control was not found in the template for "~/SFRes/Telerik.Sitefinity.Resources.Templates.Fields.ImageField.ascx". The control must be assignable from type "Telerik.Web.UI.RadUpload" and must have ID "photoUpload".

    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: Telerik.Sitefinity.Web.UI.TemplateException: A required control was not found in the template for "~/SFRes/Telerik.Sitefinity.Resources.Templates.Fields.ImageField.ascx". The control must be assignable from type "Telerik.Web.UI.RadUpload" and must have ID "photoUpload".

    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:

    [TemplateException: A required control was not found in the template for "~/SFRes/Telerik.Sitefinity.Resources.Templates.Fields.ImageField.ascx". The control must be assignable from type "Telerik.Web.UI.RadUpload" and must have ID "photoUpload".]
       Telerik.Sitefinity.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +74
       Telerik.Sitefinity.Web.UI.GenericContainer.GetControl(String id, Boolean required) +262
       Telerik.Sitefinity.Web.UI.Fields.ImageField.UploadSelectedImage() +136
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +11335224
       Telerik.Sitefinity.Web.UI.ContentUI.ContentView.LoadView(String viewName) +848
       Telerik.Sitefinity.Web.UI.ContentUI.ContentView.CreateChildControls() +105
       System.Web.UI.Control.EnsureChildControls() +182
       System.Web.UI.Control.PreRenderRecursiveInternal() +60
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    06 Jul 2011
    Link to this post
    Hi Amanda,

    The error  says that you are missing a required control with the specified IDs. Please check your template for the specific control. Also make sure you check this blogpost by Slavo when referencing the templates for the controls which is related to the virtual path settings.

    Regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    07 Jul 2011
    Link to this post
    Hello Victor,

    I am using the auto templates out of the box for the profile widget. I haven't made any changes to it. Any specific suggestions on how to edit it?

  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    08 Jul 2011
    Link to this post
    Hello Amanda,

    Can you tell me what modification have you made to the website prior to start getting the error? Please give me more details about the issue and if possible send me login credentials for the website ( you can open a support ticket for that ) so I can observe the templates and settings. Also you might consider sending me the controls or templates you have modified ( if you have such ).

    Best wishes,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. David Bruce Muir
    David Bruce Muir avatar
    15 posts
    Registered:
    07 Nov 2008
    25 Dec 2014
    Link to this post

    Solution to fix.

    you have

    <sf:ImageField ID="predefinedImageField" runat="server" SizeInPx="200" DataFieldType="Telerik.Sitefinity.Model.ContentLinks.ContentLink" WrapperTag="div" 
                        DisplayMode="Write" ShowDeleteImageButton="false" DefaultSrc="~/SFRes/images/Telerik.Sitefinity.Resources/Images.DefaultPhoto.png" DataFieldName="Avatar" UploadMode="InputField" CssClass="sfprofileField sfprofileAvatar" /> 

    within the View mode template of Profile control 

     

    REMOVE this one attribute ' UploadMode="InputField"  ' from sf:ImageField server control.

     

     

     

5 posts, 0 answered