I am using the default ASP.Net Web Application in visual studio 2010. When starting the site and going to the login page, it is missing all of the graphics. After logging in the graphics return.
I have tried adding exceptions for the path in web.config with no luck. Maybe I have the wrong path? I am using the default styles.
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
...
<location path="~/Account/Login.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
The site is the default new ASP.Net Web Application in visual studio 2010 plus in the web.config
It was a formatting/syntax issue.
When allow access in Web.config it should be:
<location path="Styles">
Not
<location path="~/Styles">
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments