Hi All.
I'm Automating 2 identical reporting servers, that generate a floorlayout based on xml. I'm using AutoCAD 2007 Mechanical, and I'm programming in C# .net.
Recently I've been experiencing various errors, that makes me go crazy 😞
1. Retrieving the COM class factory for component with CLSID {28B7AA99-C0F9-4C47-995E-8A8D729603A1} failed due to the following error: 80080005. HRESULT:0x80080005
- This occurs when I try to launch AutoCAD, however it is a random error. I have tried to look at the DCOM config, sometimes it work.
2. The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
- AutoCAD is succesfully launched, but now it won't accept my commands. Some posts on varous sites suggest implementing a IMessageFilter, and then control the flow of commands. Is that really necassary? And have any of you done that, I mean then it must be defacto std.
I made this method, should I then call after/before each command:
public void waitForAutoCAD() {
Boolean isIdle = false;
AI.AcadState state = acadApp.GetAcadState();
while (!isIdle) {
isIdle = state.IsQuiescent;
}
}
All the code runs perfect locally on my laptop, but on the servers, it's pure luck when a job complete.
Hope you can help me
Best regards
Peter