Message 1 of 2
Unhandled Exception opening AutoCad

Not applicable
12-13-2004
02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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