可学答题网 > 问答 > MCTS(70-528)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You develop a Web application that wri


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:It must impersonate the user when it writes data to the file.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. <identity impersonate="false"/>
  • B Use the following XML segment in the Web.config file. <identity impersonate="true"/>
  • C Use the following code segment to access the file. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()' Access the file herewic.Undo()
  • D Use the following code segment to access the file. Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)' Access the file herewic.Undo()
参考答案
参考解析:
分类:MCTS(70-528)题库
相关推荐

1、You create a Web application to proce

You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and st...

2、You develop a Web application that con

You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the app...

3、You are developing a Web application.

You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following cod...

4、You have a Web application that is co

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web a...

5、You develop a Web application that co

You develop a Web application that contains two master pages.You need to dynamically set the master page when a user views pages in the appli...

6、You are creating a Web application th

You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside i...