Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jaygreasley 416 posts 403 karma points
    Nov 19, 2009 @ 12:07
    jaygreasley
    0

    Contour - error when using a form created by Contour

    Hi there,

    This may be environmental but in case it's a new issue I'll raise it anyway.

    I have imported an Access db into SQL Server. I use 1 table to create a datasource and from that ds I create a form.

    I insert the Contour macro into a textpage (existing template) and create a new node based on this and when I go to the new page in the front end I get:

    Server Error in '/' Application.

    Control '2ba200fb-aded-4289-b5ee-9ce287fb9d9c' referenced by the ControlToValidate property of 'mandatory' cannot be validated.

    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.Web.HttpException: Control '2ba200fb-aded-4289-b5ee-9ce287fb9d9c' referenced by the ControlToValidate property of 'mandatory' cannot be validated.

    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:

    [HttpException (0x80004005): Control '2ba200fb-aded-4289-b5ee-9ce287fb9d9c' referenced by the ControlToValidate property of 'mandatory' cannot be validated.]
    System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName) +8735973
    System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +40
    System.Web.UI.WebControls.BaseValidator.get_PropertiesValid() +21
    System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +27
    Umbraco.Forms.Core.Controls.Validation.RequiredValidator.OnPreRender(EventArgs e) in d:\TeamCity\buildAgent\work\39da791f9304089a\Umbraco.Forms.Core\Controls\Validation\Validators.cs:51
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    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.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

  • Per Ploug 865 posts 3491 karma points MVP admin
    Nov 19, 2009 @ 12:43
    Per Ploug
    0

    What field type is it trying to render?

  • jaygreasley 416 posts 403 karma points
    Nov 19, 2009 @ 12:54
    jaygreasley
    0

    hey, many textfields, a couple of dates and a couple of checkboxes.

    I'll try removing fields and see which one causes the issue.

  • jaygreasley 416 posts 403 karma points
    Nov 19, 2009 @ 12:57
    jaygreasley
    0

    I created a new form using only textfields and it's ok. ialso excluded any mandatory fields.

    will try adding a few extra fields

  • jaygreasley 416 posts 403 karma points
    Nov 19, 2009 @ 22:02
    jaygreasley
    0

    ok, I dropped the table and recreated it using a script and it works so it must be environmental. some fields where mandatory, it may have been related to that. If I get time I will dig around a bit and try and get it to break again...

  • fed 199 posts 70 karma points
    Dec 01, 2009 @ 10:43
    fed
    0

    I am receiving the same errormessage on a form our customer have created. Did some backtracking, started by removing required fields from the bottom.

    In the form we have a Checkbox "I approve" which is set to mandatory. This seems to be the field causing the exception. As soon as I remove the "mandatory" on that field the form is working correctly.

    To recreate simply create a checkbox and set it as mandatory.

  • Rasmus Lynggaard 118 posts 325 karma points
    Dec 01, 2009 @ 14:46
    Rasmus Lynggaard
    0

    Normal ASP.NET checkboxes and radiobuttons cannot be mandatory.

  • fed 199 posts 70 karma points
    Dec 02, 2009 @ 09:42
    fed
    0

    Thanks for your answer, haven't tried using a checkbox as mandatory before.

    So basically it isn't possible to create this with Contour.

  • Per Ploug 865 posts 3491 karma points MVP admin
    Dec 02, 2009 @ 10:22
    Per Ploug
    0

    We've added a fix for this in the latest nightly build, which you can get here: 

    http://nightly.umbraco.org/Umbraco%20Contour/1.0.6/ 

    The nightly only contains minor changes so should be safe to install, however we have not done final testing on it so there it is not a "official" release yet, but for those who need a fix right now, this is an option.

    To update an existing installation, download the upgrade:

    http://nightly.umbraco.org/Umbraco%20Contour/1.0.6/UmbracoContour_1.0.6_633952812677364112_update.zip

    and unzip it in the root of your website.

     

     

     

  • fed 199 posts 70 karma points
    Dec 03, 2009 @ 10:22
    fed
    0

    Thanks Per, it did the trick!

  • Viral Shah 32 posts 61 karma points
    May 25, 2011 @ 12:30
    Viral Shah
    0

    Per -

    It seeme the links mentioned in your last post is not working. I am having this similar situation where in i am extending default check box and having the same problem mentioned in this post.

    Many thanks.

Please Sign in or register to post replies

Write your reply to:

Draft