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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:39:37+00:00 2026-05-17T01:39:37+00:00

I have a site which is running in ASP.NET 4.0, on Windows 7 Ultimate.

  • 0

I have a site which is running in ASP.NET 4.0, on Windows 7 Ultimate.
It is using FormsAuthentication, with a nice little logon page, all of which is fine so far as logging in and authenticating.

What is NOT working okay though is directory authorization overriding in sub-directories.

I want both authenticated and non-authenticated users to have access to the inc and images directories, so that the login page can be properly CSS-styled and have the logo and such on the top.

Okay, easy enough, right? I tried allowing anonymous access to these folders both by a <location> tag in the root web.config as so:

<location path="images">
    <system.web>
        <authorization>
            <allow users="*,?" />
        </authorization>
    </system.web>
</location>

as well as individual web.config file in the target directories as so:

<?xml version="1.0"?>
<configuration>
    <system.web>
        <authorization>
            <allow users="*,?" />
        </authorization>
    </system.web>
</configuration>

but for some reason it is not allowing the anonymous user into those directories. I’ve verified it has to do with authorization by trying to go directly to one of the image’s URLs and it fails. But after logging in I can pull it up just fine.

Was something changed in .NET 4.0 with regards to authorization that this would not be working? I’ve done the same exact thing in 2.0 and 3.5 sites with no problem.

  • 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-17T01:39:38+00:00Added an answer on May 17, 2026 at 1:39 am

    Figured this out. I had moved my web site directory from the default. And although IIS had given the IIS_IUSERS group permission to that directory it for some reason did not give the IUSR user rights to the directory. Added him on manually, and BOOM, it worked!

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

Sidebar

Related Questions

We have an internal ASP.NET Webforms application running on a Windows 2008/IIS7 server which
I have a location using our ASP.NET 4.0 web application which was running fine
I'm about to launch an ASP.NET web site which will be running on a
I'm developing an ASP.NET application which needs Windows Authentication. I have the web.config set
On my asp.net 4.0 site I have a upload function which allow a user
I have an ASP.NET website which is running currently on IIS. Now I want
We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When
I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net (
We have an ASP.Net Web Application that is running in an IIS Web-Garden--which is
We have a fairly high volume ASP.Net site written in c# using MS commerce

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.