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:

builder modes

get hands dirty modelsbuilder... , code cleaner


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -