This documentation is archived and is not being maintained.

Compiler Error CS0040 

Error Message

Unexpected debug information initialization error — 'reason'

This error can occur when using the /debug compiler option and indicates that the compiler was unable to write to the .pdb file. Possible resolutions to this error include reinstalling Visual Studio, ensuring that the compiler has write access to a file or directory, or not compiling with /debug.

Show: