Phenomenon:
Whether you are building a WIN32 console solution or an MFC solution, after you reopen Visual Studio 2010, you are always prompted at compile time that "the target of the call has an exception"
Solve:
1. Turn off visual Studio
2. Locate the directory where the. sln is located, open the SLn file with a text editor, and find a definition that resembles the following
Globalsection (powerdesigner) = Presolution
HASSWS = 1
Endglobalsection
Chop these three lines.
3. Delete the. suo file
4. Reopen visual Studio and compile successfully
Cause Analysis:
1. Note the error three line definition, with powerdesigner text, even if the environment is first installed in Visual Studio 2010, then install the PowerDesigner, should be PowerDesigner plug-in with the visual Issues that are caused by the cause of studio incompatibility
2. Re-open the SLn file with a text editor and discover that the SLN definition for WIN32 console is redefined as the following text
Globalsection (solutionconfigurationplatforms) = Presolution
Debug| Win32 = debug| Win32
release| Win32 = release| Win32
Endglobalsection
It is estimated that PowerDesigner replaced this paragraph of the definition to cause the error
Visual Studio 2010 Compiles when you are always prompted to resolve the "Call target exception has occurred"