Copied to clipboard

Flag this post as spam?

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


  • Jeremy Coulson 61 posts 143 karma points
    Dec 16, 2019 @ 20:09
    Jeremy Coulson
    0

    "More that one type want to be a model for content type"

    Hello!

    I have an Umbraco site that is not working when running from Visual Studio. This is actually on a new coworker's laptop. This error only happens for her and not the rest of us. If she tries to run the site locally, she gets the error in the attached image. All of the help I'm finding on the web says that I need to find a place in the code where this model is defined twice, but I have not been able to find such a thing no matter how hard I look.

    Any ideas about how we can get past this? enter image description here

    Desperately,

    Jeremy

  • Magnus Eriksson 122 posts 362 karma points
    Dec 16, 2019 @ 20:34
    Magnus Eriksson
    0

    What modelsbuilder mode are you using?

    Regards, Magnus

  • Jeremy Coulson 61 posts 143 karma points
    Dec 16, 2019 @ 21:03
    Jeremy Coulson
    0

    The mode is AppData. That's what my localhost is set to and it works a-okay. I've also tried Dll to no avail.

    Jeremy

  • Magnus Eriksson 122 posts 362 karma points
    Dec 17, 2019 @ 08:13
    Magnus Eriksson
    0

    If you're using appdata, make sure you don't have the Umbraco.Web.PublishedContentModels.dll in the bin folder.

    Regards, Magnus

  • Mario Lopez 168 posts 952 karma points MVP 4x c-trib
    Dec 17, 2019 @ 03:03
    Mario Lopez
    0

    Have you modified where Models Builder save the generated classes? If so remember to delete them from the old location.

Please Sign in or register to post replies

Write your reply to:

Draft