Sub Main()
Dim vAcadApp As AutoCAD.AcadApplication
Dim vAcadDoc As AutoCAD.AcadDocument
vAcadApp = New AutoCAD.AcadApplication
vAcadApp.Visible = True
vAcadApp.WindowState = AutoCAD.AcWindowState.acMax
End Sub
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ConsoleApplication3.exe
Additional information: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
Has anyone else noticed that you can put the exact same block of VB.NET code in VB 2010 Express and VS 2012 Express and VS 2012 Express will fail to run it.
I left a PM for you RenderMan
I will keep trying with this but the bosses are starting to lose patience.
Sorry dude, I forgot to include that fact. I have set VS 2012 Express to work with 4.0 FW. And that is the FW on the other machines as well.
What the heck, all that testing last night gave me something constructive to do while I watched the Cowboys self-destruct and embarass the entire NFL.
I do not think it has anything to do with .NET version, nor VS version (2010 vs 2010), because you are doing a standalone exe to automate AutoCAD. The .NET version of your EXE app has nothing to do with AutoCAD. You can do your app with .NET2.0, 3.x, 4.0 or 4.5. And certainly you should not bother to change <startup.<supportedRuntime.../></startup> in acad.exe.config, just because you want to automate AutoCAD froom external app.