重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
当前位置: 首页 > 计算机类考试 > 其他
网友您好, 请在下方输入框内输入要搜索的题目:
搜题

题目

[主观题]

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()

查看参考答案
更多“You develop a Web application that writes data to a file on a server. You restrict access”相关的问题

第1题

Exhibit: You are developing a Web application. The Web application uses a GridView control
to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit. During the process, you need to configure the .NET Data Provider that you use to create the data source objects. What should you do?()

A. Right-click the connection, and click Properties. Modify the Provider property of the data connection.

B. Click the Change button, and change the data provider for the selected data source.

C. Click the Advanced button, and change the Data Source property to the target provider.

D. Click the Advanced button, and change the Application Name property to the target provider.

点击查看答案

第2题

You have a Web application that is configured for personalization. You need to access pers
onalization data from one of the pages of the Web application by using the minimum amount of administrative effort.What should you do? ()

A. Access the personalization data from the Session property of the HttpContext object.

B. Access the personalization data from the Application property of the HttpContext object.

C. Access the personalization data from the Cache property of the HttpContext object.

D. Access the personalization data from the Profile property of the HttpContext object.

点击查看答案

第3题

You develop a Web application. Your application contains two settings in the Web.config fi
le. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do?()

A.Modify the application settings by using the Web Site Administration Tool.

B.Modify the application settings by using the Visual Studio property page editor for the project.

C.Modify the application settings by using the resource editor.

D.Modify the application settings by using the Visual Studio start options editor.

点击查看答案

第4题

You want to enable users of a Web application to modify the Web application‘s UI and behav
ior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

A. Persist control data by using view state.

B. Use Web Part controls.

C. Maintain a profile for each user.

D. Enable session state on the Web application.

点击查看答案

第5题

You create a Web application to process XML documents. The Web application receives XML do
cument files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document.What should you do?()

A. Load the XML data by using an instance of the XmlDocument class and specify a location for the application schema.

B. Configure the ValidationEventHandler in the XmlReaderSettings of the XmlReader object.

C. Read the XML file into a DataSet object and set the EnforceConstraints property to True.

D. Read the XML file into a DataSet object. Handle the DataSet.MergeFailed event to parse the data that does not conform to the XML schema.

点击查看答案
赏学吧APP
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

功能 扣减规则
基础费
(查看答案)
加收费
(AI功能)
文字搜题、查看答案 1/每题 0/每次
语音搜题、查看答案 1/每题 2/每次
单题拍照识别、查看答案 1/每题 2/每次
整页拍照识别、查看答案 1/每题 5/每次

备注:网站、APP、小程序均支持文字搜题、查看答案;语音搜题、单题拍照识别、整页拍照识别仅APP、小程序支持。

2. 使用语音搜索、拍照搜索等AI功能需安装APP(或打开微信小程序)。

3. 搜题卡过期将作废,不支持退款,请在有效期内使用完毕。

请使用微信扫码支付(元)
订单号:
遇到问题请联系在线客服
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

- 微信扫码关注赏学吧 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注赏学吧 -
请用微信扫码测试
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
赏学吧