IDE question "the caller refused to receive the call. (Exception from hresult: 0 × 80010001 (rpc_e_call_rejected ))"

Source: Internet
Author: User

Exception description

In envdte80.solution2. addfromtemplate (string filename, string destination, string projectname, Boolean exclusive)
In codegen. form1.createnewinstance () Location C:/Documents and Settings/Administrator/My Documents ents/Visual Studio 2005/projects/codegen/form1.cs: row number 101

 

The reason is that the IDE is not fully prepared for implementing the IDE automation operation, and there is no time to respond to the commands we issue.

Solution. Before executing the command, pause the thread. It takes about one second. Then call the IDE Function

System. Threading. thread. Sleep (500 );

It cannot be stopped for 0.5. However, the above problem may occur in one second, but the probability is much lower.

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.