I've had the same error when trying to use the class wizard. I have reset my environment as described and the error was gone. After that I reconfigured the environment step by step to fit my needs. I noticed that the error appears when I choose to disable external dependency folders (Options\Text Editor\C/C++\Advanced). Setting the value to true and reopening the solution cleared the error.