So my Web.Config File has:
<authentication mode="Forms"> <forms loginUrl="~/Home/Index" timeout="2880" /> </authentication>
in my Application_Start() i make the following calls
Configuration configuration = WebConfigurationManager.OpenWebConfiguration(null); AuthenticationSection authentication = (AuthenticationSection)configuration.GetSection("system.web/authentication"); AuthenticationType = authentication.Mode;
The problem is that AuthenticationType ends up being Windows no matter what the value i set in the web.config file. I need to pull this value to process the page differently depending on how it is configured and can't seem to get the right values.