Solved

Displaying image on login page

Posted on 2006-10-25
2
1,185 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
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now