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.