Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4015158
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:35:06+00:00 2026-05-20T09:35:06+00:00

I am currently working on a MVC3 project with Razor. I have switchen on

  • 0

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 on the <MvcBuildViews>true</MvcBuildViews> in the projects configuration file a get the following error during compile:

Error 1 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

I read several possible solutions to the problem, mostly concerning IIS and virtual Directories or Applications.
The problem is, that I do not use IIS, but instead use the default Visual Studio Development Server.

What can I do to solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:35:07+00:00Added an answer on May 20, 2026 at 9:35 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project with .NET / MVC3 / Razor. I have a
I am currently working on an ASP.NET MVC3 project in Visual Studio. I have
I am currently working on a small side-project in MVC3. The goal is to
I'm currently working on my first MVC3 application at work (using the Razor view
I'm working on a large Asp.Net MVC3 application (>50 views) and we are currently
I am currently working on a spring portlet mvc 3 project. I have a
I am currently working on a ASP.NET MVC 3 project in which I have
I currently have pagination working in my MVC 3 project using the PagedList library
I am currently working on an ASP.NET MVC3 website. I have a simple authentication
I have file uploads working great on an ASP MVC3 web site. Currently the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.