Hello,
I wrote a VB program to notify errors on architectural key plans. I developed this on Visual Studio 2010 for AutoCAD 2008 [I am not basically from a programming background. I am a practicing civil engineer]. It was working fine on this configuration.
Lately, I tried to configure this for AutoCAD 2015. I tried changing the reference to AutoCAD 2015 type library COM reference [but this does not load interop]. I also tried to make .NET reference to AutoDesk.AutoCAD.Interop and AutoDesk.AutoCAD.Interop.Common in drive/Program Files/Autodesk/AutoCAD2015 folder. I have also tried this on VS 2012. [As os now, both versions Acad2008, Acad2015, VS 2010, VS 2012 coexist on the system]
In either case, I keep getting the error messages RPC_E_CALL_REJECTED or Could not activate ACTIVEX Component. When I use .NET reference, the program runs succesfully rarely, but fails to run otherwise. I cannot make out why it runs selectively - say, if I try to run 25 times, the program runs once succesfully.
Can anyone help me identify where I am going wrong?
Thanks Gary,
I had targeted the build to .NET 4.5 for 2015, but still was not working. The problem was due to implementation of ImessageFilter interface. Thanks for the help.
Shameer
Keans blog defenitely helped. The problem was due to call rejection by AutoCAD while startup. I implemented the IMessageFilter and made Retry Call.
Thanks very much owenwengerd
Regards
Shameer