AutoCAD2013 COM errors

AutoCAD2013 COM errors

Anonymous
Not applicable
547 Views
3 Replies
Message 1 of 4

AutoCAD2013 COM errors

Anonymous
Not applicable

Hi I have a C# wrapper aorund AutoCAD that open autoCAD, loads a model and runs it and saves the data. The applicaitons runs fine on my system ( windows 7 , 64 bit) but fails on another system( windows 7, 64 bit). I get the following error message:

 

Error (Unable to cast COM object of type 'System.__ComObject' to interface type 'NBench.AutoCAD2014.IBenchmarkPlugin'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{076C9B22-3196-4F6C-B416-42517384A774}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))

 

I dont get this since it runs on fine on another system. both use .NET 4.0. On the failing system, the application is able to open the AutoCAd, load the model but then it crashes instead of running it. 

 

Can anyone have any ideas for this random error?

Thanks!

0 Likes
548 Views
3 Replies
Replies (3)
Message 2 of 4

DiningPhilosopher
Collaborator
Collaborator

AutoCAD COM is version-specific, so you have to compile against the COM libraries for the release being targeted, and if there is a newer release on the system, then you have to use Version-dependent progids (e.g., AutoCAD.Application.18.x), and if multiple releases are installed, you have explicitly start the one whose COM wrappers your app was compiled with).

0 Likes
Message 3 of 4

Anonymous
Not applicable

I am doing that. I recompile the wrapper for the current version. Still doesnt work. The wrapper is able to open AutoCAD and launch a model and then it crashes. It does not spin it. Any other ideas? One other thing, if i kick the run off from inside the visual studio i.e. through the debug control, the execution runs fine. Could this be a threading or messaging issue? I am really at wits end. Some help would be really good

0 Likes
Message 4 of 4

DiningPhilosopher
Collaborator
Collaborator

What other Autodesk software is installed on the problem system.

 

As I understand it, the presense and use of some other Autodesk products can cause problems with COM clients.

0 Likes