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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:32:32+00:00 2026-06-01T12:32:32+00:00

For an ASP.NET MVC 2 application, we are using HttpContext.User.Identity.Name to get the user

  • 0

For an ASP.NET MVC 2 application, we are using HttpContext.User.Identity.Name to get the user name for authentication purposes. This works fine when testing. Users who are in the database are able to access areas for which they have permissons, and redirected to a 401 page otherwise. The 401 page displays their username, explaining that this user is not authorized to access this content.

However, in a deployed environment, all attempts to access any portion of the application redirect to the 401 page, and the displayed username is blank!

How can we enable the deployed application to access the username of the request?

From my research, I should go to the following screen and enable Windows Authentication, but it’s not in the list!

enter image description here

  • 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-01T12:32:33+00:00Added an answer on June 1, 2026 at 12:32 pm

    Ah, if you are using IIS 7, you probably need to install it first! Here’s a good overview. FTA:

    The default installation of IIS 7 does not include the Windows
    authentication role service. To use Windows authentication on IIS, you
    must install the role service, disable Anonymous authentication for
    your Web site or application, and then enable Windows authentication
    for the site or application.

    If you’re not seeing it as an option, you probably don’t have it installed.

    (Dictated from my Winodws 7 machine,) Go to your Start menu and type: Turn Windows features on or off.

    Next, in the dialog’s treeview, go to Internet Information Services – World Wide Web Services – Security and then check the Windows Authentication checkbox.

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

Sidebar

Related Questions

This is nuts. I have an ASP.NET MVC application using Windows authentication that, amongst
I have an ASP.NET MVC application using Authorization Attributes on Controllers and Actions. This
I have a ASP.NET MVC application using NHibernate and the application runs fine when
In my ASP.NET MVC application i am using Chinese Category Name, it was displayed
Here's the situation: ASP.NET MVC 3 application using Razor as the view engine. Works
For my asp.net mvc 3 application I'm using this plugin . But I have
I have an Asp.Net MVC application using Forms Authentication that is published to the
I've made some graphs in my ASP.Net MVC application using the ASP.Net MSChart control.
I am creating an editor in asp.net MVC application using ckeditor. In textarea i
I am uploading a file in my ASP.NET MVC application using Uploadify. Controller: public

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.