You need to add the web.config/winApp.exe.config file to your application project. Depending on the project type and the version of Visual Studio that you were using the configuration file may be generated automatically. If your application project already has a configuration file then skip this step.

Adding a web.config file for an ASP.NET web application

For VS 2002

  1. Right-click your project root in the Solution Explorer, then select Add, then select "Add New Item..."
  2. Select "Web Configuration File" from the templates options.
  3. Click on Open to add the web.config file to your project.

For VS 2005

  1. Right-click your project root in the Solution Explorer, then select "Add New Item..."
  2. Select "Web Configuration File" from the templates options.
  3. Click on Add to add the web.config file to your project.

Adding a configuration file for a Windows Forms application

For VS 2002

  1. Right-click your project root in the Solution Explorer, then select Add, then select "Add New Item..."
  2. Select "Class" from the templates options. Type "App.config" in the Name box.
  3. Click on Open to add the App.config file to your project.
  4. Delete all the code generated automatically by Visual Studio.

For VS 2005

  1. Right-click your project root in the Solution Explorer, then select Add, then select "Add New Item..."
  2. Select "Configuration Application File" from the templates options.
  3. Click on Add to add the App.config file to your project.

Next: Configuring the web.config/winApp.exe.config file