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 "CONTOSO\Administrator" Then Response.Redirect("login.aspx")End IfYou 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? ()

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.

时间:2023-09-10 17:37:52

相似题目