.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deployment issue using acdbmgd.dll

2 REPLIES 2
Reply
Message 1 of 3
scott.ferguson
479 Views, 2 Replies

Deployment issue using acdbmgd.dll

Hi,

I’ve had real trouble trying to install a program created using Civil3d 2008. I have worked out that the problem is related to the acdbmgd.dll v17.1.51.0.

I created a test Library Project with only one class. It installs ok on its own. However when I reference the acdbmgd.dll I am not able to complete my install. Instead I get an error: "Unable to get installer types from ... assembly. Unable to load one or more of the requested types... *
* Please see the attached jpg for the complete error message...

Here is the code that causes the installer to fail:
Imports Autodesk.AutoCAD.DatabaseServices
Class myclass
Private _viewportID As ObjectId = Nothing
Public Property ViewportID() As ObjectId
Get
Return _viewportID
End Get
Set(ByVal value As ObjectId)
_viewportID = value
End Set
End Property

End Class

This property uses the acdbmgd.dll. If I comment out this property so that there is no reference to the dll in the program then the installer works.

Also there is no problem when I reference the acmdg.dll and the program will install.

Code for referencing acmgd.dll
Imports Autodesk.AutoCAD.ApplicationServices
Class myClass

Private _doc As Document = Nothing ' Uses the Application class
Public Property Doc() As Document
Get
If _doc Is Nothing Then
_doc = Application.DocumentManager.MdiActiveDocument
End If
Return _doc
End Get
Set(ByVal value As Document)
_doc = value
End Set
End Property
...
End Class

The property does not affect the installer as it uses the acmdg.dll

Is there some other dll I need to package that acdbmgd.dll is dependent on?

It seems as if the installer is trying to walk some dependency tree and as the dll depends on unmanaged code the installer balks. Does that sound right?

Surely we can create an installer so that doesn't sound right. I must be missing something simple.


Any help with this issue would be great as I can't package my app for release until this is sorted.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: scott.ferguson

Try adding the path to acdbmdg.dll (which should be the same as the path to acad.exe) to your system PATH.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

wrote in message news:5988212@discussion.autodesk.com...
Hi,

I’ve had real trouble trying to install a program created using Civil3d 2008. I have worked out that the problem is related to the acdbmgd.dll v17.1.51.0.

I created a test Library Project with only one class. It installs ok on its own. However when I reference the acdbmgd.dll I am not able to complete my install. Instead I get an error: "Unable to get installer types from ... assembly. Unable to load one or more of the requested types... *
* Please see the attached jpg fo
r the complete error message...

Here is the code that causes the installer to fail:
Imports Autodesk.AutoCAD.DatabaseServices
Class myclass
Private _viewportID As ObjectId = Nothing
Public Property ViewportID() As ObjectId
Get
Return _viewportID
End Get
Set(ByVal value As ObjectId)
_viewportID = value
End Set
End Property

End Class

This property uses the acdbmgd.dll. If I comment out this property so that there i
s no reference to the dll in the program then the installer works.

Also there is no problem when I reference the acmdg.dll and the program will install.

Code for referencing acmgd.dll
Imports Autodesk.AutoCAD.ApplicationServices
Class myClass

Private _doc As Document = Nothing ' Uses the Application class
Public Property Doc() As Document
Get
If _doc Is Nothing Then
_doc = Application.DocumentManager.MdiActiveDocument
End If

Return _doc
End Get
Set(ByVal value As Document)
_doc = value
End Set
End Property
..
End Class

The property does not affect the installer as it uses the acmdg.dll

Is there some other dll I need to package that acdbmgd.dll is dependent on?

It seems as if the installer is trying to walk some dependency tree and as the dll depends on unmanaged code the installer balks. Does that sound right?

Surely we can create an installer so that
doesn't sound right. I must be missing something simple.


Any help with this issue would be great as I can't package my app for release until this is sorted.
Message 3 of 3

That was it!

Thanks Tony I would not have found that on my own. I wasted a whole day trying to figure it out.

Thank you very much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost