Re: Image not showing in MasterPage during login



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/default.asp?url=/library/en-us/cpgenref/html/gngrfLocationElement.asp

If you figure out the original reason, let me know.

.



Relevant Pages

  • Re: Image not showing in MasterPage during login
    ... I have the login control on a page (login.aspx ... Authentication began blocking access to all files, ... If you figure out the original reason, ...
    (microsoft.public.dotnet.framework.aspnet)
  • asp.net vulnerability
    ... From: Windows NTBugtraq Mailing List ... More details on ASP.NET vulnerability ... There has been some confusion with the ASP.NET forms authentication issue ... authorization issue, not an authentication issue. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: application pool custom identity
    ... Kerberos becomes a possibility when the web server is in a Domain, ... The problem happens when the browser/server selects Kerberos authentication, ... LocalSystem credentials will work for Kerberos; custom AppPool Identity ... Authorization. ...
    (microsoft.public.inetserver.iis)
  • Re: Kerberos OpenLDAP Frontend
    ... Jonathan Javier Cordoba Gonzalez wrote: ... but then you are mixing the authentication with the authorization. ... A KDC with passwords and LDAP ...
    (comp.protocols.kerberos)
  • Re: ASP.NET Authentication exception case
    ... It doesn't seem to like the authorization tag underneath the location tag ... This section sets the authentication policies of the application. ... <!-- SESSION STATE SETTINGS ...
    (microsoft.public.dotnet.languages.csharp)