Runtime error '123' class does not support automation or the expected Port

Source: Internet
Author: User
After compiling VB today, I want to run it on another computer to see if I can access my database. First, I tested it on the computer (XP system) in the data center. The result showed that the '123' class does not support automation or the expected port, which made me very depressed. Then IProgramThe laptop (win7) of other students will run normally. This made me very depressed, but the problem still had to be solved. Then I started Baidu. There were indeed a lot of prompts in Baidu, but few of them were useful. There was a prompt in the interim: Database types were inconsistent. I think there is some truth. However, after analysis, I think it is wrong. This program accesses the database on my computer. How can it be considered that the database type does not match. Then I asked Baidu. It is said that the program lacks some controls. This is true. It is likely that some plug-ins in win7 are duplicated with some plug-ins in VB. Therefore, even if the program compiled by VB lacks some plug-ins, but still can run, and then put it in WINXP because of the lack of those plug-ins and VB does not, so there will be '123'
Class does not support automation or does not support the expected port, then I will test my program to a computer with a complete VB recompile, and then put it under WINXP to run. Later, I re-installed VB on my computer, and the result is OK. The problem is finally solved. I thought it was because I encountered an error when installing VB on my computer, and then the vbprogram could run, so I ignored it. As a result, this problem has delayed me for half a day. It is really not necessary. Teacher mi told us long ago that "No, it is the motive force behind the Development ." In the future, you must note that this is not the case. It is a small problem, but you will do it, which has serious consequences.

 

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.