<div>If the C# app is in the same directory as the assembly you&#39;re trying to load from Python, it would automatically find dependent assemblies in that directory. ipy.exe probably isn&#39;t in that directory, so the managed loader (which is largely driven by the directory containing the launching executable, though that is something of an oversimplification) wouldn&#39;t find it.</div>
<div> </div><div>I&#39;d forgotten fuslogvw.exe, but that&#39;s usually the penultimate thing I do when troubleshooting loading problems.<br><br></div><div class="gmail_quote">On Wed, Jun 29, 2011 at 7:48 AM, Dave Peterson <span dir="ltr">&lt;<a href="mailto:dpeterson@broadwaytechnology.com">dpeterson@broadwaytechnology.com</a>&gt;</span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Thanks Zachary,<br>
<br>
But I&#39;m confused.   Doesn&#39;t the fact that a C# app loads the assembly just fine mean that the CLR can load it ok?   And given that fuslogw is part of VS or Win SDK, I&#39;m thinking it won&#39;t help with figuring out why ipy.exe won&#39;t.   Then again, I can&#39;t explain why ipy would be doing anything special to load an assembly either, so it can&#39;t hurt to try this tool.<br>

<br>
I&#39;ll see if I can copy fuslogw.exe over from a dev machine to the machine I&#39;m planning to run ipy scripts on (can&#39;t install VS or WinSDK there directly.)<br>
<font color="#888888"><br>
<br>
-- Dave<br>
</font><div><div></div><div class="h5"><br>
<br>
-----Original Message-----<br>
From: ironpython-users-bounces+dpeterson=<a href="http://broadwaytechnology.com" target="_blank">broadwaytechnology.com</a>@<a href="http://python.org" target="_blank">python.org</a> [mailto:<a href="mailto:ironpython-users-bounces%2Bdpeterson">ironpython-users-bounces+dpeterson</a>=<a href="http://broadwaytechnology.com" target="_blank">broadwaytechnology.com</a>@<a href="http://python.org" target="_blank">python.org</a>] On Behalf Of Zachary Gramana<br>

Sent: Wednesday, June 29, 2011 2:37 PM<br>
To: <a href="mailto:ironpython-users@python.org">ironpython-users@python.org</a><br>
Subject: Re: [Ironpython-users] Assembly references: file does not exist?<br>
<br>
On 6/28/2011 9:25 AM, Dave Peterson wrote:<br>
&gt; Hello,<br>
&gt; I&#39;m relatively new to IronPython and .Net, but reasonably familiar with<br>
&gt; Python. I&#39;m trying to write a .py script to use one of my employer&#39;s<br>
&gt; .NET dlls but whenever I try to AddReferenceToFileAndPath() I get an error:<br>
&gt; IOError: System.IO.IOException: file does not exists: D:\path\to\my\dll<br>
&gt; However, the DLL definitely exists at D:\path\to\my\dll and indeed works<br>
&gt; from there using my employer&#39;s app.<br>
<br>
In the .NET platform, we have a tool called fusionlogw.exe that you can<br>
use to troubleshoot your issue.  This utility provides additional<br>
information on why the CLR cannot load an assembly. It&#39;s reasonably easy<br>
to use, as well. The official documentation is at<br>
<a href="http://msdn.microsoft.com/en-us/library/e74a18c4(v=VS.100).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/e74a18c4(v=VS.100).aspx</a><br>
_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
</div></div></blockquote></div><br>