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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:07:29+00:00 2026-06-17T18:07:29+00:00

My site located in folder /website In browser it opens by url http://localhost:52912/website/ My

  • 0

My site located in folder /website

In browser it opens by url http://localhost:52912/website/

My Default page amd master page both located in root catalog

in Default.aspx i include my master page like:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default"  MasterPageFile="WTF.master" %>

In my WTF.mater i include css file:

<link href="~/css/reset.css" runat="server" rel="stylesheet" type="text/css" media="screen" />

when i run the site and look his source code in mozilla, i see css file link as:

<link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />

so, full url will be http://localhost:52912/website/css/reset.css which is correct

-css file EXISTS

-No errors in firebug like “404 not found – reset.css”

-No errors when debugging project

I can’t even open this file by direct link in browser ( http://localhost:52912/website/css/reset.css ) or by link in mozilla source code viewer

It returns http://localhost:52912/website/default.aspx?ReturnUrl=%2fcss%2freset.css
and i remains on the same page

I tried a whole bunch of various combinations and advices from google – nothing helps

What the..???

SOLVED:
by adding

<location path="css">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>

in web.config

  • 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-17T18:07:30+00:00Added an answer on June 17, 2026 at 6:07 pm

    That’s because you have forms authentication turned on and you haven’t allowed that css folder public access. Try adding this to the web.config:

    <location path="css">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site located at http://www.mySite.com . My html/PHP pages are located at
I have a PHP5/Zend Framework 1.8.1 web site which is located at: http://www.example.com/foo The
My website files are located with the folder structure as such: * Webroot **
I have created a blank asp.net website consisting of a blank default.aspx page, its
So if a visitor is located at the testing site http://testing.site.com/app/article/123qwag how can I
I have been following the affableBean tutorial from the NetBeans site located here .
i'm moving a prestashop site which was located on armarkat.biggo.org to armarkat.be. I searched
I've got a ASP.NET site that's located on a local server (MY_SERVER). And one
How can I read a text file located in relative path of my site
In my installation, numpy's arrayobject.h is located at …/site-packages/numpy/core/include/numpy/arrayobject.h . I wrote a trivial

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.