asp.net mvc - Umbraco cannot create any views -
i created new asp.net mvc project , installed umbraco 7 via nuget. having play chose easy option of using sql server ce database.
i created empty umbraco instance , followed tutorial umbraco site.
everything working fine ran solution today , front end wouldn't display , threw error
the view found @ '~/views/simplecontentpage.cshtml' not created.
i log end fine however. example view no longer worked looked this:
@inherits umbraco.web.mvc.umbracotemplatepage<contentmodels.simplecontentpage> @using contentmodels = umbraco.web.publishedcontentmodels; @{ layout = "master.cshtml"; } <div id="main-container"> <div id="main" class="wrapper clearfix"> <section> <h2>@umbraco.field("pagetitle")</h2> @umbraco.field("bodytext") </section> </div> </div>
once changed inherits just:
@inherits umbraco.web.mvc.umbracotemplatepage
it worked fine. know what's gone wrong?
the modelsbuilder converts document types typed models set default "purelive" mode. mode means models generated , in memory @ runtime. means visual studio complain models not being present.
i recommend trying either dll or appdata modes play nicer visual studio.
for more information modelsbuilder, take @ these posts:
Comments
Post a Comment