Copied to clipboard

Flag this post as spam?

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


  • Brian Bozarth 10 posts 59 karma points
    25 days ago
    Brian Bozarth
    0

    The type or namespace name 'Name' does not exist in the namespace 'Umbraco.Web.PublishedModels'

    Been looking at a project in v8 locally and created a PageType for a component just to test called 'HeroTest'. Now I can't build the project in Visual Studio 2017. I am getting this error.

    Error CS0234 The type or namespace name 'HeroTest' does not exist in the namespace 'Umbraco.Web.PublishedModels' (are you missing an assembly reference?) MassageEnvy C:\Users\Local Administrator\AppData\Local\Temp\Temporary ASP.NET Files\temp\ade71005\fab88062\AppWebvtha5sls.0.cs 1 Active

    I went back to the earlier build and deleted the PageType from Umbraco. But I am still getting this error. How do I resolve?

    I was looking around for answers. and I have this in my web.config.

    I went in Umbraco and settings, I have ModelsBuilder installed but no where do I see to build the Models.

    Not sure how to resolve?

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    25 days ago
    Alex Skrypnyk
    0

    Hi Brian

    ModelsBuilder is part of the core now, so you don't need to install it.

    Try to check what ModelsBuilder mode do you use now?

    go to web.config -> Umbraco.ModelsBuilder.ModelsMode key

    Thanks,

    Alex

  • Brian Bozarth 10 posts 59 karma points
    25 days ago
    Brian Bozarth
    0

    It's PureLive currently.... I've gone back and forth to Dll but still getting that error.

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    25 days ago
    Alex Skrypnyk
    0

    For using ModelsBuilder classes in Visual Studio try to use "AppData" mode, also in this mode, you need to include all classes under /app_data/Models folder into the project.

  • Brian Bozarth 10 posts 59 karma points
    25 days ago
    Brian Bozarth
    0

    I changed it to "AppData", but I am still getting the same error when I try and build in Visual Studio. Also I did not see a /App_Data/Models folder built yet.

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    25 days ago
    Alex Skrypnyk
    0

    Try to go to ModelsBuilder section in Umbraco back officeenter image description here and press generate.

  • Brian Bozarth 10 posts 59 karma points
    21 days ago
    Brian Bozarth
    0

    I have a new problem now... I moved the Solution folder, so I can't load the previous build and can't get into the Umbraco backoffice.

    I've done a text search on 'HeroTest' in the directory but didn't came up with anything. Is there a way to reset it so I don't get that error? Not sure where the requirement for 'HeroTest' is... in the solution folder or possibly in the SQL db?

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    21 days ago
    Alex Skrypnyk
    0

    If you can't get into the Umbraco backoffice it looks like db connection issue

  • Alex Skrypnyk 5730 posts 21691 karma points MVP 3x admin c-trib
    21 days ago
    Alex Skrypnyk
    0

    What do you mean by moving the solution folder?

Please Sign in or register to post replies

Write your reply to:

Draft