TheSwamp

Code Red => .NET => Topic started by: sling blade on February 13, 2013, 09:46:06 PM

Title: Unable to Reference COM dll
Post by: sling blade on February 13, 2013, 09:46:06 PM
Hi,

I am trying to install the "Autodesk Civil Engineering 10.0 Land Object Library" dll into a new VB project using VS 2010 but when I do I get "<The system could not find the reference specified>" message in the References list (see attachment screen shot).

When I try in using C# I do get a different error it is says, "Could not resolve COM reference ... the type library importer encountered an error during type verification. Try importing without class members."

I have installed VS on a non developing computer to test and I get the same errors so I assume its something I am doing ...

Has anyone run into this before? What am I doing wrong?


Regards,

Scott
Title: Re: Unable to Reference COM dll
Post by: Jeff_M on February 13, 2013, 10:41:47 PM
You must reference the dll's directly from the install folder, not by finding the COM references. See here (http://civilizeddevelopment.typepad.com/civilized-development/2012/04/21wojp-week-1-migrating-your-com-code.html) for an explanation and instructions.
Title: Re: Unable to Reference COM dll
Post by: sling blade on February 14, 2013, 04:11:19 PM
Thanks very much! Referencing the dll directly sorted my issue.