John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. The application will be used in the Sales department to generate monthly reports. John wants to deploy the application on the company’s intranet. The company uses Microsoft Windows authentication. John wants to deny access to all the members of the Guest1 role. Which of the following attributes will he use in the <authorization> element of the application’s Web.config file to accomplish the task?
A. <deny=”Guest1″ />
B. <deny users=Guest1(“All”) />
C. <deny users=”Guest1″ />
D. <deny roles=”Guest1″ />
Answer:D
John works as a Web Developer for ABC Inc. He develops an ASP.NET application, named MyApp1, using Visual Studio .NET. The application will be used in the Sales department to generate monthly reports. John wants to deploy the application on the company’s intranet. The company uses Microsoft Windows authentication. John wants to deny access to all the members of the Guest1 role. Which of the following attributes will he use in the <authorization> element of the application’s Web.config file to accomplish the task?
A. <deny=”Guest1″ /> B. <deny users=Guest1(“All”) /> C. <deny users=”Guest1″ /> D. <deny roles=”Guest1″ />