Visual Studio 2010 Compiles when you are always prompted to resolve the "Call target exception has occurred"

Source: Internet
Author: User
Tags visual studio 2010 powerdesigner

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.