Copied to clipboard

Flag this post as spam?

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


  • AH2Glow 1 post 71 karma points
    Oct 28, 2022 @ 09:55
    AH2Glow
    0

    Umbraco 10 using Umbraco Forms package

    Hi,

    I am working on a project in Umbraco 10 and added the Umbraco.Forms package. In older projects, we used to have a manually written InsertUmbracoFormWithTheme.cshtml, which didn't work in version 10 and should be deleted according to this thread

    After deleting that file, I end up with a bunch of errors in the browser, starting with:

    The type or namespace name 'ClientDependency' could not be found (are you missing a using directive or an assembly reference?)

    @using ClientDependency.Core.Mvc The type or namespace name 'Mvc' does not exist in the namespace 'Umbraco.Forms' (are you missing an assembly reference?)

    @using Umbraco.Forms.Mvc.BusinessLogic The type or namespace name 'Mvc' does not exist in the namespace 'Umbraco.Forms' (are you missing an assembly reference?)

    @using Umbraco.Forms.Mvc

    There errors (in part) arise from files within the Views\Partials\Forms\ folder, which I cannot adjust (probably because they're created through the Umbraco.Forms package).

    How should I solve these errors?

Please Sign in or register to post replies

Write your reply to:

Draft