PrepAway - Latest Free Exam Questions & Answers

You need to register a custom navigation provider by us…

A company has a SharePoint farm that has the following configuration:
SPWFE1 and SPWFE2 are configured as front-end web servers.
SPAPP1 and SPAPP2 are configured as application servers.
New servers will be added to the farm.
You implement a solution that contains a custom navigation provider.
You need to register a custom navigation provider by using the least amount of administrative effort.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a web.solutionname.xml file in the \\CONFIG directory and run the copyappbincontentStsadm
command.

B.
Edit the ApplicationHost.config file on each SharePoint server.

C.
Edit the web.config file for the web application on all SharePoint servers.

D.
Use the SPWebConfigModification class.

Explanation:
In Microsoft SharePoint Foundation, one way to modify web.config settings is to use the
SPWebConfigModification class of the Microsoft.SharePoint.Administration namespace, which allows you to
dynamically register entities. These modifications are persisted in the configuration database where they
function as a kind of virtual web.config that effectively serves as the final layer of the .config file stack for the
SharePoint Foundation web application. The changes become effective when the
SPWebService.ApplyWebConfigModifications method is called.
How to: Add and Remove Web.config Settings Programmatically


Leave a Reply