visual studio 2010 - MVC3 Strange error after switching on compilation of views -


i working on mvc3 project razor. have switchen on compilation of views aware of spelling errors etc. @ compile-time.

as switch on <mvcbuildviews>true</mvcbuildviews> in projects configuration file following error during compile:

error 1 error use section registered allowdefinition='machinetoapplication' beyond application level. error can caused virtual directory not being configured application in iis.

i read several possible solutions problem, concerning iis , virtual directories or applications. problem is, not use iis, instead use default visual studio development server.

what can solve problem?

i have tried lot of different solutions available in web, either did not quite fit onto problem, or did not work.

to recap problem:

after switching compileviews on, got above error during compile. using default visual studio development server of vs2010 test mvc app.

today opened request @ microsoft developer support, , - ashamed admit - got answer approximately 30 seconds callback technician:

all said was: please goto obj folder , delete contents. compile again.

and took.

so after lot of head-shaking myself wanted share results you.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -