@amanaPlanaCAnalPAnaMA weird indeed... Is there something special with the word java?
–
fbernardoMar 1 '12 at 21:28

7

It seems to happen to any URL ending in .java. For example, this works, but this doesn't, even though the question title is only in the URL for SEO purposes, so it should be ignored in both cases. This makes me suspect it might be the web server treating URLs with a .java extension differently.
–
hammarMar 1 '12 at 21:32

(^ is status-completed because synonyms were created for the tags, not because IIS was made to behave)
–
Tim StoneMar 1 '12 at 21:36

3

+1 for @hammar. .cs is also broken, as I expected. IIS prevents certain file extensions from being downloaded, .cs (c# file extension) is one of them. So is .config (web.config files).
–
Won'tMar 1 '12 at 21:38

@Won't. That's what I suspected. It also happens to .dll and probably a few more.
–
hammarMar 1 '12 at 21:46

1 Answer
1

The .NET Framework protects file extensions that should not be directly called by clients by associating them with System.Web.HttpForbiddenHandler in Machine.config. The following file extensions are mapped to System.Web.HttpForbiddenHandler by default: .asax, .ascx, .config, .cs, .csproj, .vb, .vbproj, .webinfo, .asp, .licx, .resx, and .resources [and more not mentioned in this article]