For some reason, when I reference the PNG from my application.css file, I get a credential request. However, I can link to GIF, JPEG, etc. From the catalog of images without problems.
My routes are configured as follows:
public static void RegisterRoutesTo(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("elmah.axd"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.MapRoute( "Default", "", new { controller = "Home", action = "Index"} // Parameter defaults ); routes.MapRoute( "Session", "{action}", new { controller = "Session" }, new { action = "(login|logout|register)" } ); routes.MapRoute("CatchAll", "{*catchall}", new { controller = "Error", action = "NotFound" }); }
In my CSS, I have this:
.iconLocationLarge { background-image: url(../images/icon_vcarea_48x48.png) !important;} .iconVCLarge { background-image: url(../images/tb-btn-sprite.gif) !important;}
The problem is that I get a re-authentication request if I use PNG but not with GIF. Why?
source share