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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:40:32+00:00 2026-05-23T23:40:32+00:00

I have an ASP.Net application that is using Windows Authentication and I have specified

  • 0

I have an ASP.Net application that is using Windows Authentication and I have specified a role that is on my AD and on my local development box, all appears to be well. When I deploy to my test web server, the username that is displayed via the ASP LoginName control is showing an identity that is local to the server, not my actual account on the domain in which I am currently logged in as on my local pc. What gives?

UPDATE:
I am using Windows XP SP3 with the development IIS server (not IIS, even though IIS is installed). I created a new test site (empty web template from VWD2010 Express). Only configuration I did so far was on the Default.aspx page, I added:

<asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome {0}!" /><br />
<asp:Label ID="RoleLabel" runat="server"></asp:Label>

And then in the code behind, I added:

if (User.IsInRole("IPSCODOM\\SAFETY OBSERVATION"))
{
    this.RoleLabel.Text = "You are in the SAFETY OBSERVATION role";
}
else {
    this.RoleLabel.Text = "You are NOT in the proper role!";
}

Now, when I start debugging, the screen shows the following:

This is the output I was expecting. BUT, when I deploy the site (again, no other configuration to the website) to the test server (Server 2003 R2 with IIS 6.1) the results are quite different. The user returned is a user that we use to login to that server (but is a domain account). The Application Pool is set to login using the Network Service account (which I have tried all three, System, Local Service, and Network Service) and the World Wide Web Publishing Service is using the Local System account to login. I disabled Anonymous access on the site and when I browse to the site, again, it shows a different user account than my logged in user account.

What am I doing wrong?

  • 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-23T23:40:33+00:00Added an answer on May 23, 2026 at 11:40 pm

    Actual issue was that when I needed to deploy some files over to the test server and I did not have access to the root of the drive. When I browsed to the root, the login dialog appeared and I logged in as the user that it was showing as logged in on the web page. I forgot that I did this and now I feel like an idiot. Please excuse my ignorance but keep this question in mind in case someone else has a brain fart.

    To undo the login by the way, I went to Control Panel >> User Accounts >> Advanced >> Manage Passwords and removed the credentials for the server I was browsing to. Then it picked up my user account properly.

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

Sidebar

Related Questions

I have an ASP.Net application (on Win2K) that is using Windows authentication and impersonation.
I am using asp.net MVC to develop an application that will have ajax interactions.
We have created a web application, using ASP.NET, that allows users to upload documents
I have an asp.net application (relying party) that uses a passive STS for authentication
I have a Windows-Forms Application that I configured to use with an ASP.NET Service
I have an ASP.NET application that authenticates users using Ldap against active directory. This
I have an ASP.NET application designed for a Windows CE device that needs to
I have a ASP.NET application that we've written our own logging module for. My
I have an ASP.net Application that runs on the internal network (well, actually it's
We have an ASP.NET application that manages it's own User, Roles and Permission database

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.