Exercise 2: Verification
In order to verify that you have correctly performed all steps of the exercises, proceed as follows.
- In Visual Studio 2010 select File | Open | File from the menu to open File dialog. Navigate to the HTMLLab project directory and then to obj\Staging\TransformWebConfig\transformed folder. Select the Web.config file and click Open.
Notice that in the Web.config file the value for EnvironmentName has been changed to Staging.
<appSettings> <add key="EnvironmentName" value="Staging" /> </appSettings>
Locate connection string in the Web.config file and verify that the database server name has been updated to QADatabaseServer.
<connectionStrings> <add name="LoggingConnectionString" connectionString="Server=QADatabaseServer;Database=Logger;Integrated Security=SSPI;" providerName="System.Data.SqlClient"/> </connectionStrings>
- Close the Web.config file.
Exercise 3: Packaging and Deploying Web Applications for the Visual Studio Development Web Server