Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 27, 2013 @ 13:07
    Anthony Candaele
    0

    YSOD with Standard Website MVC v2

    Hi,

    I just installed the Standard Website MVC v2 starter kit on a fresh Umbraco v6 install.

    I set the defaultRenderingEngine setting in umbracoSettings.config to 'MVC'

    But when I render the home page, or any other page, I get an ysod with the error message:

     CS1061: 'Umbraco.Core.Models.IPublishedContent' does not contain a definition for 'GetPropertyValue' and no extension method 'GetPropertyValue' accepting a first argument of type 'Umbraco.Core.Models.IPublishedContent' could be found (are you missing a using directive or an assembly reference?

    is this a bug in the Standard Website MVC v2 starter kit?

    greetings,

    Anthony

  • Chris Koiak 700 posts 2626 karma points
    Feb 27, 2013 @ 13:12
    Chris Koiak
    0

    Hi Anthony,

    Did you download the package via the our.umbraco or the package repository?  

    Sounds like a version mis match

    Cheers

    Chris

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 27, 2013 @ 13:15
    Anthony Candaele
    0

    Hi Chris,

    I downloaded the package via our.umbraco

    greetings,

    Anthony

  • Chris Koiak 700 posts 2626 karma points
    Feb 27, 2013 @ 13:17
    Chris Koiak
    0

    mmmmm I'm not sure and don't have access to the code right now.

    Does changing the code to GetPropertyValue<string> work?

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 27, 2013 @ 13:22
    Anthony Candaele
    0

    I installed, Umbraco v6 using Nuget, but there seems some strange things going on in my source code. I'll reinstall Umbraco manually and see if this solves the problem. I'll let you know.

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 27, 2013 @ 13:38
    Anthony Candaele
    1

    just installed Umbracov6 manually, and now it's working. Ready to check out Standard Website MVC v2 now :)

  • Chris Koiak 700 posts 2626 karma points
    Feb 27, 2013 @ 15:01
    Chris Koiak
    100

    I've just updated the download link to point to the correct version, but doesn't sound like this was your issue.

    Glad you got is sorted.

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 27, 2013 @ 16:04
    Anthony Candaele
    0

    just for testing sake, I did a new download of the Standard Website MVC Starter Kit v2 package, and I did a new install of Umbraco v6 through the Nuget Package Manager Console.

    Because, Nuget skips installing the Umbraco web.config and Views/web.config file, I first removed those files from my Empty Web Application MVC 4 project.

    After installing Umbraco, I installed the Standard Website MVC v2 starter kit package, and this time everything worked fine!

    greetings,

    Anthony

  • Mounhim Tahtahi 41 posts 62 karma points
    Apr 10, 2013 @ 22:13
    Mounhim Tahtahi
    0

    I am having the same problem and also in backend I cannot access the pages with a different YSOD. 

    My situation: two projects: Site and Extensions. Extensions runs a different database (LOB Data). When I install everything is ok. Then I do something in extensions to create a new version of LOB database. After that I run the site and I get the same error as person in first post. Only way to solve it is to deinstall MVC starter kit and reinstalling it, which is painful, since I already started creating pages based on that starter kit.

     

    Never mind: Recycling the app pool did the trick.

Please Sign in or register to post replies

Write your reply to:

Draft