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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:48:32+00:00 2026-05-19T17:48:32+00:00

I have a very strange problem. (fyi – I’m using forms authentication and manually

  • 0

I have a very strange problem. (fyi – I’m using forms authentication and manually creating a non persistant auth. ticket/cookie.) My login page has images and CSS applied to it. When I run my site locally (start without debugging), it brings up my login page, but none of my images are displaying and my css isn’t linking. I’m referencing correctly, I promise.

However, when I view this page in VS’s Design view, it shows the images and CSS. Also, if I run it and log in, and click the back button, everything shows up (images/css)! But if I logout (which redirects me to the login page), my images/css isn’t there! Its as if the page can’t reference its own resources unless the user is logged in. WTH. I’m only having this problem on my local VS server; it seems to work fine when I put it on the live server (woot). Anyone know why this is happening?

Here is a portion of my login page that is requesting the image/css:

...
<head runat="server">
  <link rel="stylesheet" type="text/css" href="styles/BodyLayout.css" />
  <title>Optoma USA - Login</title>
</head>
<body>
<center>
  <div style="text-align:left; width:990px; height:780px; background-color:White;">
  <div id="divBody">
    <form id="form1" runat="server" target="_self">
    <center>
      <div style="height:100px; width:600px; text-align:center;">
        <img src="images/Optoma_Logo.gif" alt="Unable to display image." />
      </div>
    </center>
...

also, here is my authorization code in web.config:

<authentication mode="Forms">
            <forms loginUrl="~/index.aspx" name="adAuthCookie" path="/">
            </forms>
        </authentication>
        <!--<authorization>:-->
        <authorization>
            <!-- <deny>: will deny all users and redirect to login page,
            unless they are properly authenticated-->
            <deny users="?"/>
            <!--<allow>: might be configured later. probably will not need-->
            <allow users="*"/>
        </authorization>
  • 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-19T17:48:32+00:00Added an answer on May 19, 2026 at 5:48 pm

    I think your web.config contains

    <authorization>
      <deny users="?"/>
    </authorization>
    

    This means users cannot load anything other than the login page — but not its images, stylesheets, etc. You can merge the following into web.config to make an exception for images, for example:

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

Sidebar

Related Questions

We have very strange problem, one of our applications is continually querying server by
I have a very strange problem. Under some elusive circumstances I fail to apply
I have a very strange problem, when I try to var_dump (or print_r )
I have a very strange problem with the Delphi 2006 IDE. If the IDE
I have very strange problem with Doxygen: I used it to create documentation from
Have a very strange problem with Apache .htaccess URL Rewriting and Redirection. Here's my
I have this very strange problem on a big flex app where it would
I have a very strange problem in a Flex 3.4 Datagrid. One of the
I have a very strange problem with Visual Source Safe. I use VSS as
i have a very strange problem, well not really a problem because i've fixed

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.