You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.
if (Page.User.Identity.Name != @"CONTOSOAdministrator") { Response.Redirect("login.aspx");}
You are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A.
In the Web.config file, enable impersonation.
B.
In IIS, enable anonymous access.
C.
In IIS, disable anonymous access.
D.
In the Web.config file, set the authentication mode to Windows.