MVC3 Strange error after switching on compilation of views

后端 未结 2 1527
醉梦人生
醉梦人生 2021-01-11 14:03

I am currently working on a MVC3 project with Razor. I have switchen on compilation of Views to be aware of spelling errors etc. at compile-time.

As soon as I switch

2条回答
  •  长发绾君心
    2021-01-11 14:19

    I have tried a lot of different solutions available in the web, but either they did not quite fit onto my problem, or they did not work.

    To recap my problem:

    After switching CompileViews on, I immediately got the above error during compile. I am using the default Visual Studio Development Server of VS2010 to test my MVC app.

    Today I opened a request at Microsoft Developer support, and - I am almost ashamed to admit it - got my answer approximately 30 seconds into the callback from the technician:

    All he said was: Please goto your obj folder and delete all contents. Then compile again.

    And that really was all it took.

    So after a lot of head-shaking about myself I wanted to share the results with you.

提交回复
热议问题