Hi,
I want to determine the Authentication mode set in the web.config of an ASP.NET application.
I found this article:
https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.authenticationsection.mode?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Configuration_AuthenticationSection_ModeBut when I add the following code to my page:
AuthenticationMode currentMode = authenticationSection.Mode;
the line authenticationSection has a squiggly red underling and the error message:
"The name 'authenticationSection' does not exist in the current contect"
Any suggestion of what I am missing?
TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham