Solved

Displaying image on login page

Posted on 2006-10-25
2
1,189 Views
Last Modified: 2008-02-26
I am porting a site from asp.net to asp.net 2 and the site have forms authentication (To much work to change to the new authentication model)

<authentication mode="Forms">
      <forms loginUrl="Login.aspx" name="FORMSAUTHCOOKIE"/>  
    </authentication>
    <authorization>
      <deny users="?"/>
    </authorization>

The problem is that the css file and the images of the login page is denied. How do I allow a directory (image directory) and a certain file (in my case the css file) to bypass the security?
0
Comment
Question by:dogbrain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 17802202
You need to specify a <location>.  Here is a Micro$oft KB article that might help explain what I mean:

HOW TO: Control Authorization Permissions in an ASP.NET Application
http://support.microsoft.com/kb/316871

Bob
0
 
LVL 7

Assisted Solution

by:RBertora
RBertora earned 25 total points
ID: 17802331
What a weird error, forms auth stopping css working...

any way.
This should do the trick

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

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


</configuration>

Rob;-)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 89
vb.net, web page, SQL holding the selected data in an accessible variable 7 49
YouTube API get the Video Tags - vb.net 7 54
Data Analysis 7 59
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question