You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web application using .NET Framework 4.0.
You are planning to deploy the ASP.NET Web application to a production server by publishing the Web
application in Release configuration.
You must ensure that the connection string value inthe Web.config file is updated to the connection string
value of the production server during publishing.
What will you do?
A.
Add the following code to the Web.config file.
<connectionStrings>
<add name=”DataBD” connectionString=”Server=ProductionSewer;
Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:
Locator=”Match(name)” />
</connectionStrings>
B.
Add the following code to the Web.release.config file.
<connectionStrings>
<add name=”DataBD” connectionString=”Server=ProductionSewer;
Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:
Locator=”Match(name)” />
</connectionStrings>
C.
Add the following code to the Web.config file:
<connectionStrings>
<add name=”DataBD” connectionString=”Server=ProductionSewer;
Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:
Locator=”XPath(name)” />
</connectionStrings>
D.
Add the following code to the Web.release.config file.
<connectionStrings>
<add name=”DataBD” connectionString=”Server=ProductionSewer;
Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:
Locator=”XPath(name)” />
</connectionStrings>