<div>I am not sure if its managed or unmanaged, its a third party dll that came with its software, the interface is COM (ActiveX). I have added and worked with it through C#, I load them using Add Reference in C# .NET and then find them on the COM tab. Also, when added as reference in the .NET environment they load as Interop.MBTCOMLib i.e with a different name and their copy is local and is in the project directory rather than the directory where they are located. </div>

<div> </div>
<div>I tried the GAC utility and its said Failure adding assembly to cache: The module was expected to contain an assembly manifest. The funny thing is clr.FindAssembly() finds it, but clr.AddReference says unable to find assembly.</div>

<div><br><br> </div>
<div class="gmail_quote">On Mon, Apr 13, 2009 at 11:20 PM, Tribble, Brett <span dir="ltr">&lt;<a href="mailto:btribble@ea.com">btribble@ea.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p style="TEXT-INDENT: -0.25in"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"><span>1.<span style="FONT: 7pt &#39;Times New Roman&#39;">       </span></span></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">Is it a managed assembly or an unmanaged .dll?</span></p>

<p style="TEXT-INDENT: -0.25in"><span style="FONT-SIZE: 11pt; COLOR: #1f497d"><span>2.<span style="FONT: 7pt &#39;Times New Roman&#39;">       </span></span></span><span style="FONT-SIZE: 11pt; COLOR: #1f497d">If it is a managed assembly, is it registered in the GAC?</span></p>

<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">See: </span><a href="http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=713" target="_blank">http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=713</a></p>
<p> </p>
<p>also try:</p>
<p> </p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d">clr.AddReference(&#39;nameOfAssembly&#39;). Note that you do not need to include ‘.dll’ This assumes the assembly is in the system path which can be accomplished using  sys.path.insert(0, &#39;mypath&#39;)</span></p>

<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<p><span style="FONT-SIZE: 11pt; COLOR: #1f497d"> </span></p>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p><b><span style="FONT-SIZE: 10pt">From:</span></b><span style="FONT-SIZE: 10pt"> pythondotnet-bounces+btribble=<a href="http://maxis.com/" target="_blank">maxis.com</a>@<a href="http://python.org/" target="_blank">python.org</a> [mailto:<a href="mailto:pythondotnet-bounces%2Bbtribble" target="_blank">pythondotnet-bounces+btribble</a>=<a href="http://maxis.com/" target="_blank">maxis.com</a>@<a href="http://python.org/" target="_blank">python.org</a>] <b>On Behalf Of </b>kfadnis<br>
<b>Sent:</b> Monday, April 13, 2009 6:10 PM<br><b>To:</b> <a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a><br><b>Subject:</b> [Python.NET] System.IO.FileNotFoundException: Unable to find assembly &#39;MbtCom.dll&#39;.</span></p>
</div>
<div class="im">
<p> </p>
<div>
<p>Hi All,</p></div>
<div>
<p>I know this is a very basic question, but despite all my efforts I haven&#39;t been able to load a third-party dll into python. I can find the dll using clr.FindAssembly(&quot;MbtCom&quot;). I also append the required path to the sys.path, but it refuses to show up. Is there something obvious I am missing ?</p>
</div>
<div>
<p> </p></div>
<div>
<p>Thank you for your time.</p></div></div></div></div></blockquote></div><br>