Problem with VS 2005 Forms Authentication

G

Guest

If I create a new solution from scratch in VS 2005 and decide to use Forms
Authentication (not using the login controls, just creating a Login.aspx page
as it was in VS 2003) everything works okay, except that for the Login page
the styles and images are not visible.
For the other pages of the solution the styles a images are recognized
correctly.
It looks like the redirection mechanism (that redirects to login.aspx)
doesn't know where the root of the Web is.
I can provide an example (a small one) easily if needed.
 
J

Jay Pondy

Add the following to allow non-authenticated users access to your style sheet.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top