This documentation is archived and is not being maintained.

Error copying the application configuration file to the run directory. <reason>

Visual Studio .NET 2003

The project system cannot copy an app.config file to the directory from which the project is being run. The build process will fail if this error occurs.

This error only occurs when building an .exe file.

The build system attempts to find a file called app.config in the root folder of the project. That file will then be copied into the project's output directory; its name in the output directory will be outputfile.config.

Reasons for this error include:

  • out of disk space
  • MAX_PATH exceeded

You may also want to make sure that there is not another copy of the application running.

See Also

Modifying Project Properties and Configuration Settings