This documentation is archived and is not being maintained.
Compiler Error CS0041
Unexpected error writing debug information to file 'file' — 'reason'
This error can occur when using the /debug compiler option. If you are unable to resolve the error based on the information in reason, do not compile with /debug.