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 7749151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:58:07+00:00 2026-06-01T10:58:07+00:00

When I switch my ASP.NET MVC project from Cassini web server to IIS Express,

  • 0

When I switch my ASP.NET MVC project from Cassini web server to IIS Express, this is added to my applicationhost.config file:

<location path="MyProject">
    <system.webServer>
        <security>
            <authentication>
                <anonymousAuthentication enabled="false" />
                <windowsAuthentication enabled="false" />
            </authentication>
        </security>
    </system.webServer>
</location>

It’s causing the site not to load with 401.2 – Unauthorized and I can’t fix it on the Web.config level – it will then complain that the section is locked at parent level (HTTP 500.19).

I can fix it by amending the applicationhost.config file but I don’t understand why I should need to when no such section is added for a vanilla ASP.NET MVC project. What can be wrong?

I’m using VS 11 beta but also confirmed this weird behavior in 2010 SP1. IIS Express says it’s version 7.5.

  • 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-06-01T10:58:08+00:00Added an answer on June 1, 2026 at 10:58 am

    It was because for some reason, this was in my csproj file:

    <IISExpressAnonymousAuthentication>disabled</IISExpressAnonymousAuthentication>
    

    Setting it to enabled fixes the issue (it can also be done from Visual Studio, select project, F4, set Anonymous Authentication in the properties grid to Enabled).

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

Sidebar

Related Questions

I have this code in my ASP.NET MVC project master page: <% switch(Request.Browser.Browser) {
Im trying switch the Visual Studio asp.net mvc web app template to use MySql
I am just exploring asp.net mvc as I want to switch from Webforms. I
I have to develop a fairly large ASP.NET MVC project very quickly and I
I've an ASP.NET MVC 3 project and have been tasked with implementing a few
I am trying to learn Asp.net Mvc so I am trying out this Tutorial.
Currently I'm trying to port a web application(ASP.NET MVC) to windows azure and have
I have an ASP.NET MVC application up and running, using a SQL Sever express
I currently have an ASP.NET MVC project built on top of the S#arp architecture
I'm new to ASP.NET MVC, and plan on using it for an upcoming project.

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.