I'm getting this error message on all projects (including brand new empty templates) I'm trying to build with Visual Studio 2008:
Unexpected debug information initialization error -- 'Failed to find a required export in the runtime.'
The Error Help for Compiler Error CS0040 is not very helpful:
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.
I can manually create files in the intended {bin,obj}\Debug directories, running the Studio as Administrator didn't help, uninstalling both the 3.5 framework and the Visual Studio 2008 and re-installed both with their respective Service Packs and I'm still getting the error.
Removing all /debug
switches from the command line obviously removes the error message as indicated, but is no option for further development.
How can I further debug this?