Copied to clipboard

Flag this post as spam?

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


  • Robin Larsson 6 posts 87 karma points
    Jan 04, 2019 @ 14:20
    Robin Larsson
    0

    Assuming assembly reference

    I have a problem using the Views in MVC. I created a new project with the MVC template, created a local db and installed umbraco. Now when i want to access the view i just created in umbraco, this happen. I'm not sure what to do from here...My Umbraco version is v7.12.4. Also the view is inheriting from Umbraco.Web.Mvc.UmbracoTemplatePage I get the same warning there

    enter image description here

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Jan 04, 2019 @ 18:21
    Nik
    100

    Hi Robin,

    It's best practice to install Umbraco into an empty website project instead of an MVC templated website project.

    You probably have a referencing issue where your template was set up to work with a newer version of MVC than Umbraco works with. If you've not gone too far down the process it could be worth trying to start fresh with an empty project.

    Nik

  • Robin Larsson 6 posts 87 karma points
    Jan 07, 2019 @ 07:56
    Robin Larsson
    0

    Yes that seem to be the problem. I did exactly as you said and it worked perfectly with an empty MVC project. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft