Which of the following attributes will he use in the < authorization > element of the application’s Web.config file to accomplish the task?

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 roles="Guest1" />
B . <deny="Guest1" />
C . <deny users="Guest1" />
D . <deny users=Guest1("All") />

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments