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?
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.
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!
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.
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
Hi Anthony,
Did you download the package via the our.umbraco or the package repository?
Sounds like a version mis match
Cheers
Chris
Hi Chris,
I downloaded the package via our.umbraco
greetings,
Anthony
mmmmm I'm not sure and don't have access to the code right now.
Does changing the code to GetPropertyValue<string> work?
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
just installed Umbracov6 manually, and now it's working. Ready to check out Standard Website MVC v2 now :)
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.
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
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.
is working on a reply...