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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:39:59+00:00 2026-06-12T15:39:59+00:00

I have an ASP.NET Dynamic Data site that should only be accessible to administrators

  • 0

I have an ASP.NET Dynamic Data site that should only be accessible to administrators currently logged in and on the domain. I want the site to be able to tell who the user is based on their login and either allow or deny access without challenging for credentials. Due to the nature of a Dynamic Data site, I want to be certain no one else is finding their way in their so I’d like to manage authentication and authorization in IIS rather than the web.config. But no matter what I do, it denies access even as administrator.

Using IIS7 on a 64 bit Windows Server 2008 R2 Standard machine. When clicked on the site and go into Authentication, I have disabled all modes except Windows.

All three available providers are enabled in the following order:

Negotiate:Kerberos
Negotiate
NTLM

In Authorization, I have added a deny rule to deny anonymous users and then allow all users. Eventually will change that to allow role administrator but I can do that once I get this working.

What am I missing? If it matters, the web server, the domain controller, the file server the pages are on are all on the same domain.

  • 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-12T15:40:00+00:00Added an answer on June 12, 2026 at 3:40 pm

    You may want to use this little snippet of code:

    Public Function GetGroups() As ArrayList
        Dim groups As New ArrayList()
        For Each group As System.Security.Principal.IdentityReference In System.Web.HttpContext.Current.Request.LogonUserIdentity.Groups
            groups.Add(group.Translate(GetType(System.Security.Principal.NTAccount)).ToString())
        Next
        Return groups
    End Function
    

    This returns all the groups the current windows user is part of, that way you can check if the admin group is in the array list and just redirect them if not.

    So drop the other access deny/allow and use whether or not they are in the admin group to determine access.

    You will need to make sure that the following is in your config file:

    <system.webServer>
    ...etc
      <security>
    ...etc
        <authentication>
          <windowsAuthentication enabled="true" />
        </authentication>
    ...etc
      </security>
    ...etc
    </system.webServer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In an ASP.NET Dynamic Data web site/project, all the templates have CSS classes like
I have come to the conclusion that the very nifty ASP.NET Dynamic Data framework
I have an ASP.NET Dynamic Data application that includes two tables, Departments and KPI's
I have an ASP.NET dynamic data site and for one of the text fields
I'm using ASP.Net Dynamic Data. I have the following line in my site.master page.
I have a product admin web site that has been generated using ASP.NET Dynamic
I have created a asp.net Dynamic data linq to sql web site. After creating
I have Asp.net application that implemented with Dynamic Data technology. All data from my
I have an ASP.NET Dynamic Data application (using Entity Framework) in which I have
I have an ASP.NET Dynamic Data web application, with an entity called ActivationResource .

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.