Master Pages and Themes not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using ASP .NET 2.0, VS2005 Professional RTM.

I added a master page to my web application and made my default page refer
to it. I then proceeded to theme some elements in the master page.
Everything worked great. When I then went to my login page and had it refer
to the master page as well things started going wrong.
I attempt to run my application and get directed to the login page. The
login page is missing all the "themeing" from the master page portion. For
example, one of the skins contains the path to the logo image. The link
shows up broken. However, if I look at the source of the web page the path
is in there and it is correct.
If I proceed to login in I get to my default page and everything is fine.
If I click the back button the login page shows up as it should.
I have the theming set up from the web.config file.

Any ideas?

Chris
 
Yep, you need to allow anonymous access to the App_Themes directory via a
<location> element:

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

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Thanks that did it.
After rereading my post it seems so obvious that I should have checked that
based on the symptoms.
 
Back
Top