dgk wrote:
I have an image in the masterpage which works fine everywhere except
the login page. I have the login control on a page (login.aspx
naturally) and the user is directed to it via forms authentication. On
that page, the image in the masterpage is replaced by the default
square. Anyone know what's up with this?
I've had this problem. It seems to have happened spontaneously, but
there's probably some mind-boggling reason I missed. In my case, Forms
Authentication began blocking access to all files, rather than allowing
images, CSS files and Javascript files.
I never figured out a real solution, and instead ended up with this
inside the 'configuration' tag in web.config. This unblocks all of the
specific directories to all users.
<location path="CSS">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="images">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="JS">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
See
http://msdn.microsoft.com/library/de...ionElement.asp
If you figure out the original reason, let me know.