AutoCAD 2007/2008/2009

Posts: 4
Registered: ‎11-23-2009
Message 1 of 1 (232 Views)

Get the error: Could not load file or assembly 'acdbmgd

232 Views, 0 Replies
11-24-2009 07:09 AM
We are building a product using the AutoCAD .NET API and Visual Studio 2008 SP1.
Our product needs to support AutoCAD 2007 through 2010.

The OS is XP Professional SP3 and has the following (relevant) programs:
1. AutoCAD 2007, 2008 and 2010, Autodesk DWF Viewer 7, Autodesk Design Review 2010
2. .NET Framework 1.1 thru 3.5 SP1

If it matters, this is all running in a VM.

Visual Studio project details:
I have a project reference to the following AutoCAD DLLs:
1. C:\Program Files\AutoCAD 2007\acdbmgd.dll (Version
2. C:\Program Files\AutoCAD 2007\acmgd.dll (Version
3. The "AutoCAD 2008 Type Library" COM component
4. The "OLE Automation" COM component

When I run the project (with or without debug mode), I get the following System.Reflection.ReflectionTypeLoadException:
{"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."}

Here's the value of LoaderException property:
{"Could not load file or assembly 'acdbmgd, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))":"acdbmgd, Version=, Culture=neutral, PublicKeyToken=null"}

If it helps, here are other details:
Source: mscorlib
at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at Microsoft.VisualStudio.Tools.UserControlTestContainer.LoadAssemblyFromFile(String fileName)
at Microsoft.VisualStudio.Tools.UserControlTestContainer.UserControlTestContainer_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.VisualStudio.Tools.UserControlTestContainer.Main(String[] args)

I am not sure why I am getting this error. Any help would be greatly appreciated. Thanks.

- Aashish

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Connect with AutoCAD