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

  • Home
  • SEARCH
  • 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 7888711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:54:11+00:00 2026-06-03T05:54:11+00:00

Our mvc application sets the response status code to 401 and sets TrySkipIisCustomErrors to

  • 0

Our mvc application sets the response status code to 401 and sets TrySkipIisCustomErrors to true under some circumstances.

I can see from the IIS log that it is getting this status code:

2012-05-04 01:32:42 10.212.98.183 POST /v1.07/session - 80 - 10.24.22.26 curl/7.20.1+(i686-pc-cygwin)+libcurl/7.20.1+OpenSSL/0.9.8r+zlib/1.2.5+libidn/1.18+libssh2/1.2.5 401 0 0 48325

However the response I receive in the client is 500:

< HTTP/1.1 500 Internal Server Error
< Content-Type: text/html
< Server: Microsoft-IIS/7.0
< Date: Fri, 04 May 2012 02:31:18 GMT
< Content-Length: 75
<
* Connection #0 to host webserver left intact
* Closing connection #0
The page cannot be displayed because an internal server error has occurred.

I have tried various other settings in the web.config for the mvc application around httpErrors and customErrors, none of which seem to make a difference.

How can I configure IIS to return the actual response and not 500?

  • 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-03T05:54:12+00:00Added an answer on June 3, 2026 at 5:54 am

    So after a lot more googling, I changed the applicationHost.config file to allow delegation of httpErrors and now I get the correct response back to the client.

    I had to set the following from Deny to Allow:

    <section name="httpErrors" overrideModeDefault="Allow" />
    

    I tried to follow the instructions in the file to use a <location> tag:

    <location path="" overrideMode="Allow">
      <system.webServer>
        <httpErrors />
      </system.webServer>
    </location>
    

    but this did not work. It would work if I specified the web site in the path, rather than all sites though, however, I want to allow it for all the sites on the web server.

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

Sidebar

Related Questions

I've written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I'm
I'm converting one of our ASP.NET MVC application from 1.0 to 2.0. This is
I deployed my MVC application in our IIS server. When I go to registration
We want to split our large asp.net mvc web application into multiple Visual Studio
In our ASP.NET MVC application, we've noticed that we cannot have The Forbidden DOS
We're currently rewriting our organizations ASP.NET MVC application which has been written twice already.
We are getting the error above on some pages of an ASP.NET MVC application
So I have our MVC web application up and running and we'd like to
In our current Asp.net MVC application we have 2 menu systems one accross the
Our current enterprise solution is a ASP.NET MVC application driven by the Entity Framework.

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.