[IronPython] clr.AddRefernce* woes
Dan Shechter
dans at houmus.org
Fri Feb 24 01:19:21 CET 2006
Hi,
I've just installed beta 3 drop but I can't use clr.AddReference to anything
that isn't part of .NET 2.0 core libraries.
I'm trying to load a .NET 2.0 compiled assembly. "PERWAPI.dll", I have a
test.exe console c# program
which does invoke methods and instantiate classes defined within that DLL.
I'm also having problems with the tutorial "demo" using mapack.dll., I've
provided a transcript below:
---------------------------------------- CUT HERE
----------------------------
>>> import clr
>>> clr.AddReference("System.XML")
- Crashed
>>> import clr
>>> clr.AddReferenceByPartialName("System.XML")
- works
>>> clr.AddReferenceByPartialName("Mapack")
Traceback (most recent call last):
File , line 0, in input##152
File , line 0, in AddReferenceByPartialName##81
RuntimeError: Could not add reference to assembly Mapack
>>> clr.Path
[]
>>> clr.Path.append(System.Environment.CurrentDirectory)
>>> clr.Path
['C:\\Development\\IronPython\\Tutorial']
>>> clr.AddReferenceByPartialName("Mapack")
- Crashed
---------------------------------------- CUT HERE
----------------------------
Naturally the same happens for PERWAPI.dll (which I'm really interested in
getting to work) and naturally,
Both .DLLs (PERWAPI.DLL & MAPACK.DLL) are in the '
C:\Development\IronPython\Tutorial'' on my machine...
Any ideas?
More information about the Ironpython-users
mailing list