[IronPython] Can't import System?

Dan Eloff dan.eloff at gmail.com
Tue Jul 10 02:27:35 CEST 2007


On 7/9/07, Dino Viehland <dinov at exchange.microsoft.com> wrote:
> I haven't heard of this one before...  Are you calling clr.AddReference or one of the other clr.AddReference* methods?  There's some clr methods which correspond to CLR methods which won't load partial assembly names.

Actually I checked and I wasn't calling clr.AddReference at all. The
form designer must've clobbered it. I've got to keep an eye on that
thing. Adding the clr.AddReference for the appropriate assemblies
solved the problem. Thanks!

-Dan
>
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dan Eloff
> Sent: Monday, July 09, 2007 10:33 AM
> To: IronPython Mailing List
> Subject: [IronPython] Can't import System?
>
> I created a winforms project in IronPython, compiled it and it worked
> great. Then I made some changes and now it says it can't import any of
> the .NET assemblies. FileNotFoundError: "Could not load file or
> assembly 'System.Data' or one of its dependencies. The system cannot
> find the file specified."
>
> It happens for System, System.Data, System.Drawing,
> System.Windows.Forms, and System.XML.
>
> Does anybody have any ideas why this might be happening?
>
> Thanks,
> -Dan
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list