I have seen numerous posts with this problem, however none of the solutions have worked for me. I am using asp.net 4.0 forms authentication. I have the following set in my config file.
The login.aspx page uses a master page and styles in a stylesheet located in a folder off the root directory called 'Styles'. I have also add the following to my config file.
When the page displays, the login page displays with the master page content, however all of the styles are missing. When I embed styles into the master page the styles show properly, so I know the problem is that the styles are not being accessed from the file.
Does anyone know how I can authorize access to the stylesheet?
Code:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" />
</authentication>
<authorization>
<deny users="?"/>
</authorization>
Code:
<location path="~/Styles">
<system.web>
<authorization>
<allow users = "*"/>
</authorization>
</system.web>
</location>
Does anyone know how I can authorize access to the stylesheet?
Comment