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 2 posts 82 karma points
    18 days ago
    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 937 posts 3745 karma points MVP c-trib
    17 days ago
    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 2 posts 82 karma points
    15 days ago
    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