ASP.NET code to detect whether IIS “Windows Authentication” is enabled
问题 I would like to be able to detect, from ASP.NET code, whether IIS currently has "Windows Authentication" "available"? Starting from my application installed and currently running under "Anonymous Access", I want to detect: "Windows Authentication" component has actually been installed in IIS (e.g. some IIS7 have it not installed by default); and... "Windows Authentication" is actually "Enabled" on my virtual root/location. I want this information to let the Administrator know whether he needs