This documentation is archived and is not being maintained.

Compiler Error CS0041 

Error Message

Unexpected error writing debug information to file 'file' — 'reason'

This error can occur when using the /debug compiler option. If you encounter this error, try deleting the PDB files in the bin directory and recompiling. If you are still encountering this error, you may need to repair or reinstall Visual Studio. As a last resort, try Getting Help from Microsoft Product Support Services (Visual Studio).

Show: