Copied to clipboard

Flag this post as spam?

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


  • NDDT 68 posts 240 karma points c-trib
    Nov 09, 2016 @ 11:22
    NDDT
    0

    ViewModel not known in Project

    I have my Website on Uaas and I'm trying to RouteHijack one of the Documenttypes.

    The used the automatic Project setup so I have my Models and Controllers in a seperate Project "mypage-website-uaas.Core" while the views are in the project "mypage-website-uaas.Web".

    To create a new Model I derived my class from "RenderModel". And I created a controller which generates the data for this model.

    Now I want to create a view in the "mypage-website-uaas.Web" but I cant use the created Model.

    @inherits UmbracoTemplatePage<mypage-website-uaas.Core.Models.DocumentationViewModel>
    

    This doesnt work.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Nov 09, 2016 @ 11:51
    Alex Skrypnyk
    0

    Hi NDDT,

    Why you can't use the created model?

    Is it accessible?

    Thanks,

    Alex

  • NDDT 68 posts 240 karma points c-trib
    Nov 09, 2016 @ 11:54
    NDDT
    0

    Visual Studio shows an error that it doesnt know about that model. I'm wondering how to fix that.

    The required dll is in the bin-Folder

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies