Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS2032
Collapse the table of content
Expand the table of content

Compiler Error CS2032

Character 'character' is not allowed on the command-line or in response files

Response files and the command line options for csc.exe are not allowed to contain low-ASCII control characters in the range of 0-31, or the pipe (|) character. You cannot ordinarily generate this error directly from the command line because the command line processor filters out invalid characters, as does the integrated development environment (IDE). You can generate this error using a response file, as follows.

To generate this error

  1. Create a file named CS2032.rsp that contains the line, /target:exe /out:cs|2032.exe cs2032.cs, in My Documents.

  2. Create a file named cs2032.cs that contains anything at all in My Documents.

  3. Click Start, then point to All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio 2005 Tools, and then click Visual Studio Command Prompt.

    The Visual Studio Command Prompt window opens.

  4. In the Visual Studio Command Prompt window, change the current directory to My Documents.

  5. Run the following from the Visual Studio Command Prompt: csc @cs2032.rsp

  6. The CS2032 error message appears.

Community Additions

© 2015 Microsoft