Khalil, thanks for your reply and sample project. I've tweaked the project somewhat by forbidding anonymous authentication at the site level (deny users="?") but overriding the default.aspx page to allow anonymous users (allows users="?").
This is my use case - I need to add a new web page to an existing site, and the existing site denies anonymous users. The new page allows anonymous users. When I configure your sample project with this override, the scalebar disappears.
When I configure my own site to allow anonymous access on my web page but deny it for the site, the scalebar on the map also disappears; further, the map tiles are replaced with pink tiles.
I am attaching a PDF file with screen shots, and snippets from the configuration fiile.
I definitely mis-stated my use case before. The issue really is that I have a web site that denies anonymous users, and a web page in that site that allows anonymous users. What other paths must I override using the location tag to allow the anonymous access without degrading the utility of the map?
Thanks!