单项选择题
You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with severity level of error to the Windows application event log. What should you do?()
A.Run the aspnet_regiis.exe command.
B.Set the Treat warnings as errors option to All in the project properties and recompile.
C.Add the following rule to the
D.Add the following rule to the
相关考题
-
多项选择题
YoucreateaVisualStudio2010solutionthatincludesaWCFserviceprojectandanASP.NETproject.TheserviceincludesamethodnamedGetPeoplethattakesnoargumentsandreturnsanarrayofPersonobjects.TheASP.NETapplicationusesaproxyclasstoaccesstheservice.YouusetheAddServiceReferencewizardtogeneratetheclass.Afteryoucreatetheproxy,youmovetheserviceendpointtoadifferentport.Youneedtoconfiguretheclienttousethenewserviceaddress.Inaddition,youmustchangetheimplementationsothatcallstotheclientproxywillreturnaListinsteadofanarray.Whichtwoactionsshouldyouperform?()
A.In the context menu for the service reference in the ASP.NET project, select the Configure Service Reference commSystem.Collections.Generic.List
B.In the context menu for the service reference in the ASP.NET project, select the Update Service Reference comma
C.Change the service interface and implementation to return a List
D.Edit the address property of the endpoint element in the web.config file to use the new service address -
单项选择题
YouareimplementinganASP.NETWebsite.Thesiteusesacomponentthatmustbedynamicallyconfiguredbeforeitcanbeusedwithinsitepages.YoucreateastaticmethodnamedSiteHelper.Configurethatconfiguresthecomponent.YouneedtoaddacodesegmenttotheGlobal.asaxfilethatinvokestheSiteHelper.Configuremethodthefirsttime,andonlythefirsttime,thatanypageinthesiteisrequested.Whichcodesegmentshouldyouuse?()
A.void Application_Start(object sender, EventArgs e) { SiteHelper.Configure(); }
B.void Application_Init(object sender, EventArgs e) { SiteHelper.Configure(); }
C.void Application_BeginRequest(object sender, EventArgs e) { SiteHelper.Configure(); }
D.Object lockObject = new Object(); void Application_BeginRequest(object sender, EventArgs e) { lock(lockObject()) { SiteHelper.Configure(); } } -
单项选择题
YouareimplementinganASP.NETWebsite.TherootdirectoryofthesitecontainsapagenamedError.aspx.YouneedtodisplaytheError.aspxpageifanunhandlederroroccursonanypagewithinthesite.YoualsomustensurethattheoriginalURLinthebrowserisnotchanged.Whatshouldyoudo?()
A.Add the following configuration to the web.config file.
B.Add the following configuration to the web.config file.
C.Add the following code segment to the Global.asax file.
D.Add the following code segment to the Global.asax file.
