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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:46:56+00:00 2026-05-22T11:46:56+00:00

One web site is required to be accessed by me (developer) and one user

  • 0

One web site is required to be accessed by me (developer) and one user (DOMAIN_NAME\USER_NAME).

When I developed web site in visual studio using "automatic host" created by VS, the following settings in web.config were enough:

<authentication mode="Windows"/>
<authorization>
  <allow users="DOMAIN_NAME\my_name,DOMAIN_NAME\USER_NAME" />
  <deny users="*" />
</authorization>

But when I created web site in IIS I’m receiving error:

Access is denied.

Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server’s administrator for additional assistance.

What setting for ApplicationPoolIdentity and web site itself are required to be specified?

Thanks a lot!

EDIT:

I’ve configured Application Pool of local IIS to use ‘LocalSystem’ identity, web site – to use "pass-through" authentication, and as suggested disabled "Anonymous Authentication", enabled "Windows Authentication" – and web site locally became workable.

But locally I have windows 7 (IIS7), but on "TEST" environment (where I need to deploy web site) I have windows 2008 server and it doesn’t have option to enable "Windows Authentication"… don’t know why… probably that is for higher level of administrator, but I’m a member of Administrators group…

Guess, I’m doing something wrong…

Please advise.

  • 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-22T11:46:58+00:00Added an answer on May 22, 2026 at 11:46 am

    Your web.config is set up properly. Further, ensure the IIS site/app is configured as:

    • to NOT allow anonymous access
    • forcing Integrated Windows authentication
    • leave the app pool as Network Service

    IIS7

    • ensure you have the Windows Authentication security feature installed in Roles & Features.
    • In IIS7, go to the IIS or Features View, double-click Authentication.
    • On the Authentication page, select Windows Authentication
    • On the Authentication page, disable Anonymous Authentication
    • MSDN article

    IIS6

    Find the dialog below at

    • Control Panel / Administrative Tools -> IIS Manager -> Right click Web site -> Properties -> Directory Security

    IIS 6 non anonymous with Windows Authentication

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

Sidebar

Related Questions

I am using one template to build my web site. I want to add
I just finished a medium sized web site and one thing I noticed about
One of the web pages on our site is extremely long. Although the page
I've been looking into different web statistics programs for my site, and one promising
A section of our web site calls for asking the user 20 multiple-choice questions
I have one website on my server, and my IIS Worker Process is using
MKS Yacc supports a notation which their web site calls selection preference syntax .
I have a web-site that generates some simple tabular data as html tables, many
I was wondering if its possible to redirect a user to a web page
Is there any one website which contains many good C# screencasts?

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.