Nawara17,
You should never need to do what you are doing.
Change what you have to:
[code]
AcadApp = Autodesk.AutoCAD.ApplicationServices.Application
[/code]
This gives the Managed AutoCAD application object.
The reason it is failing your way is that you are trying to use COM to return an AutoCAD object, but that object is not fully initialized when you try to acquire it, resulting in a COM exception (time out) 'Failed to (create/acquire) object" or something like that.
If you need the COM AutoCAD application object, then use this :
[code]
AcadApp = (Autodesk.AutoCAD.Interop.AcadApplication) Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication
[/code]
C