[IronPython] RuntimeError: Could not add reference to assembly SAPProxyENTE.dll
Paparipote .
paparipote at hotmail.com
Fri Feb 17 05:10:53 CET 2006
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/
More information about the Ironpython-users
mailing list