Copied to clipboard

Flag this post as spam?

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


  • Steve 472 posts 1216 karma points
    Jun 18, 2014 @ 14:10
    Steve
    0

    Contour Error After Upgrade from Umbraco v4 to v6

    Could someone help me diagnose this? We just upgraded Umbraco from v4.11 to v6.1.8 and are using webforms. Here is the error on the page with a Contour form macro.

    \\umbracoshare\prep\wwwroot_6x\umbraco\plugins\umbracoContour\Views\Form.cshtml(28): error CS0619: 'System.Web.Mvc.HtmlHelper.AntiForgeryToken(string)' is obsolete: 'This method is deprecated. Use the AntiForgeryToken() method instead. To specify custom data to be embedded within the token, use the static AntiForgeryConfig.AdditionalDataProvider property.'
  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jun 18, 2014 @ 14:20
    Dave Woestenborghs
    0

    What version of contour are you running ?

  • Steve 472 posts 1216 karma points
    Jun 18, 2014 @ 14:49
    Steve
    0

    v3.0.1

  • Steve 472 posts 1216 karma points
    Jun 18, 2014 @ 21:03
    Steve
    100

    The error occures if you upgrade Umbraco without upgrading Contour to the latest version. There is however an error in the documentation that will cause another issue.  There is an xsltExtensions.config file which allows you to register 3rd party xslt extensions.

    The Contour documentation says to add this line to the file:

        <ext assembly="/bin/Umbraco.Forms.Core" type="Umbraco.Forms.Library" alias="umbraco.contour" >

    But it should be:

        <ext assembly="Umbraco.Forms.Core" type="Umbraco.Forms.Library" alias="umbraco.contour" />

Please Sign in or register to post replies

Write your reply to:

Draft