Exception encountered: This may be an _ exception handling caused by an extension

Source: Internet
Author: User
Tags exception handling

Reconfiguration of the computer room fee system, I use EA to finish the UML diagram, I intend to use EA to generate vb.net code, this will be a bit. I didn't think it was as simple as I thought it might be. The reason for the first attempt is that the problem is one after the other in the process of importing code. But fortunately, despite the difficulties along the way, but I still go all the way, the code to the tune, in this small sum up the problem I encountered.

I. Reference issues

After the class is generated under the specified package with EA, a situation occurs when the layers are called again: The Assembly adds a reference to another assembly, but the referenced assembly name is not displayed when imports are made. For example, I want to refer to B layer on the U layer, after adding the reference interface in the U-layer and checking the reference to B-layer, I can't find the B-level name in the Declaration section.

Reasons and Solutions:

First, we must understand why the reference is meant. Baidu Encyclopedia is the definition of this: reference refers to writing articles, the intention to quote ready-made language, verse, Maxim, allusion, etc., in order to express their thoughts and feelings, to explain their new problems, new ideas, this rhetoric is called the reference, plainly is that the other people's things themselves use. In VS, we refer to references in other Dll,dll and other classes, and after referencing these DLLs, you will be able to use the classes that are encapsulated in your program (after referencing, using or the Imports namespace).

Second, we need to understand that after we generated the class with EA, we just had the class library with the relevant code and did not generate the DLL file. So the solution is to manually generate the following. Select an assembly-right click-Build, then add imports to find it.

Second, set up startup items

The specific questions are as follows:



Analysis Reason: Online collection of the following, the reason for the exception is the installation of Third-party controls, and then delete is not removed clean, resulting in log file errors. I think the local control should be referring to EA, with the EA generated code, the code has been adjusted, but not with the EA synchronization, which may be the cause of the problem.

Workaround: Open the IDE Main program directory of VS with a command prompt, such as my C:\Program Files\Microsoft Visual Studio 12.0\common7\ide, and then execute Devenv/log, as shown in figure:



This will then work properly.

Learning to reflect: sometimes the feeling is too impatient, the more do not want to encounter problems, but met more. After learning to learn to adjust the learning mentality, in the process of learning, encounter problems is inevitable, the problem as we learn the opportunity. Then calm down, calmly analyze their own steps to resolve their own ideas, step-by-step solution can be. At this stage of our study, there are no too complex problems, they are simply composed of a number of simple questions, to be in the strategic contempt for it, one after the break.







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.