This project has moved. For the latest updates, please go here.
2

Closed

Better error message when trying to load downloaded DLLs

description

Internet Explorer and Chrome both add a mark when downloading files (Zone.Identifier), and .NET will refuse to load assemblies that are tainted as such (see [url:http://blog.jdhardy.ca/2010/09/using-downloaded-ironpython-modules.html], [url:http://stackoverflow.com/questions/6668344/using-the-r-net-assembly-in-ironpython], etc.).
 
There's not much we can do about loading the assemblies, but at least we can come up with a better error message when trying to load them.
Closed Mar 10, 2012 at 6:51 AM by jdhardy
Released in IronPython 2.7.2

comments

jdhardy wrote Jul 13, 2011 at 4:46 AM

PythonContext.TryLoadAssemblyFromFileWithPath catches all exception from Assembly.LoadFile, so the reason for the load failure is lost. Better for those exceptions to bubble up, if there are no other inadvertant side effects of doing so.

wrote Oct 15, 2011 at 10:04 PM

wrote Feb 24, 2012 at 12:43 AM

jdhardy wrote Feb 24, 2012 at 4:39 AM

Fixed in 1755fbd.

wrote Feb 24, 2012 at 4:42 AM

wrote Mar 10, 2012 at 6:51 AM

wrote Feb 22, 2013 at 1:09 AM

wrote May 16, 2013 at 12:03 PM