Unhandled Exception opening AutoCad

Unhandled Exception opening AutoCad

Anonymous
Not applicable
308 Views
1 Reply
Message 1 of 2

Unhandled Exception opening AutoCad

Anonymous
Not applicable
hi,
I am using the below mentioned code to open acad, _____________________________________
imports Autocad
Imports System.Runtime.InteropServices
Try
acadApp = Marshal.GetActiveObject("AutoCAD.Application")
Catch
Try
acadApp = New AcadApplicationClass()
Catch
Throw
End Try
End Try
_______________________________________

It worked fine however since yesterday it gives the following error. I created a new project and tried only this code to check if i have changed something in my project, but it still gives the same error. Here is the error.
______________________________________
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in collection.exe
Additional information: Server execution failed
______________________________________

Can soomeone guide me please what is wrong and how to correct it.

Irfan
0 Likes
309 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
ignore this, i have sorted it anyway.
Acad licence file was no available on my system and therfore acad was not available.

irfan
0 Likes