<div>If the C# app is in the same directory as the assembly you're trying to load from Python, it would automatically find dependent assemblies in that directory. ipy.exe probably isn'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't find it.</div>
<div> </div><div>I'd forgotten fuslogvw.exe, but that'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"><<a href="mailto:dpeterson@broadwaytechnology.com">dpeterson@broadwaytechnology.com</a>></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'm confused. Doesn'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'm thinking it won't help with figuring out why ipy.exe won't. Then again, I can't explain why ipy would be doing anything special to load an assembly either, so it can't hurt to try this tool.<br>
<br>
I'll see if I can copy fuslogw.exe over from a dev machine to the machine I'm planning to run ipy scripts on (can'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>
> Hello,<br>
> I'm relatively new to IronPython and .Net, but reasonably familiar with<br>
> Python. I'm trying to write a .py script to use one of my employer's<br>
> .NET dlls but whenever I try to AddReferenceToFileAndPath() I get an error:<br>
> IOError: System.IO.IOException: file does not exists: D:\path\to\my\dll<br>
> However, the DLL definitely exists at D:\path\to\my\dll and indeed works<br>
> from there using my employer'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'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>