Copied to clipboard

Flag this post as spam?

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


  • Nick Hillman 17 posts 130 karma points
    Jan 20, 2022 @ 13:23
    Nick Hillman
    0

    Multi Url Picker not working with 9.2.0

    Hi, Can anyone help me with this? I can't get the MultiUrlPicker to work in Umbraco 9.2.0... This is the error I get...

    the code is simply... var link = Model.Value("link");

    An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.

    One or more compilation references may be missing. If you're seeing this in a published application, set 'CopyRefAssembliesToPublishDirectory' to true in your project file to ensure files in the refs directory are published.

    The type or namespace name 'Link' could not be found (are you missing a using directive or an assembly reference?) + var link = Model.Value("link");

  • Marius 15 posts 102 karma points
    Jan 20, 2022 @ 15:47
    Marius
    101

    Hi Nick,

    you need to add this

    using Umbraco.Cms.Core.Models;
    
  • Nick Hillman 17 posts 130 karma points
    Jan 20, 2022 @ 16:03
    Nick Hillman
    0

    Many thanks Marius, That's worked now!

Please Sign in or register to post replies

Write your reply to:

Draft