That should do it - where does test.dll live in this case? Also, does:
import System
System.Reflection.Assembly.LoadAssembly('test')
this successfully load the assembly or does that fail as well?
________________________________________
From: [EMAIL PROTECTED] On Behalf Of Paparipote .
Sent: Thursday, February 16, 2006 8:10 PM
To: [email protected]
Subject: [IronPython] RuntimeError: Could not add reference to assembly
SAPProxyENTE.dll
Dino:
I had the same problem of Jon.
In spite of the instructions given to solve the problem of "Process is
terminated due to StackOverflowException."
After modifications, I got the error:
RuntimeError: Could not add reference to assembly Test.dll
when putting the instructions:
clr.AddReferenceByPartialName("Test.dll") or
clr.AddReference("Test.dll")
In clr.cs I changed:
private void AddReference(object reference) {
AddReference(reference, null);
}
by:
private void AddReference(object reference) {
Assembly asmRef = reference as Assembly;
if (asmRef != null) {
AddReference(asmRef);
return;
}
string strRef = reference as string;
if (strRef != null) {
AddReference(strRef);
return;
}
}
I deleted entire
private void AddReference(object reference, string alias) {
Assembly asmRef = reference as Assembly;
if (asmRef != null) {
AddReference(asmRef, alias);
return;
}
string strRef = reference as string;
if (strRef != null) {
AddReference(strRef, alias);
return;
}
}
and I commented:
// if
(String.IsNullOrEmpty(System.IO.Path.GetExtension(fullName))) {
and also the corresponding closing "}"
The ironpython.dll was generated without errors.
Is there something wrong with the changes I made?
Best regards.
_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com