Copied to clipboard

Flag this post as spam?

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


  • h1pm0n 2 posts 22 karma points
    Jul 23, 2020 @ 17:47
    h1pm0n
    0

    Umbraco 8 Model builder not able to find doctype generated file

    I am working on an existing Umbraco 8 project and seeing some very strange behaviour. I created a doctype via my localhost and it generated the doctype.generated.cs file added it to visual studio and everything was fine.

    When it came to deploy the changes, I went into Model Builder regenerated the models, saw them appear in the folder, went to the page and got the error

    The type or namespace named 'Blog' does not exist in the namespace 'Umbraco.Web.PublishedModels' (are you missing an assembly reference?)

    I am running the model builder in AppData mode to a custom path so they are not hidden in the AppData folder.

    I have tried restarting, changing the mode to PureLive and LiveAppData and still no joy

    Any help would be greatly appreciated

  • h1pm0n 2 posts 22 karma points
    Jul 24, 2020 @ 08:40
    h1pm0n
    0

    Turns out a good night sleep will fix a few things. One of them is remembering to copy across your DLL's if you are going to use AppData models in your project.

Please Sign in or register to post replies

Write your reply to:

Draft