You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO\ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file. You need to ensure that the application meets the following requirements: 1. It must impersonate the user when it writes data to the file 2. It must run as CONTOSO\ASPNET when a user does not access the file. Which two actions should you perform?()
A. Use the following XML segment in the Web.config file.
B. Use the following XML segment in the Web.config file.
C. Use the following code segment to access the file. WindowsPrincipal wp =(WindowsPrincipal)HttpContext,Current.User;WindowsIdentity wt = (WindowsIdentity)wp.Idetity;WindowsImpersonationContext wic = wi.Impersonate();// Access The file herewic.Undo();
D. Use the following code segment to access the file. WindowsIdentity wi = WindowsIdetity.GetCurrent();WindowsImpersonationContext wic = WindowsIdentity.Impersonate(wi.Token);// Access the file herewic.Undo();
查看答案
Excel无法筛选出满足条件的数据。
A. 对
B. 错
系统总体结构设计是否合理,对提高系统的各项指标至关重要,这些指标包括系统的可行性、可用性、可维护性、易读性及系统的工作效率等。
A. 对
B. 错