Does clr.AddReference (instead of AddReferenceToFile) work for you instead?  I 
think it should if AgentServerObjects.dll is in the app base (usually iron 
python's directory), a subdir of the app base called "bin", or a subdir called 
AgentServerObjects. 

This is probably due to the change from using LoadFrom to LoadFile.  This in 
many ways is better than LoadFrom but may have some disadvantages as well such 
as this.  Let us know if AddReference doesn't work - if not we may need some 
improvements still in our loading story.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paparipote .
Sent: Friday, January 06, 2006 9:20 AM
To: [email protected]
Subject: [IronPython] ValueError: Absolute path information is required

In Exercise 1: Merlin the Wizard, task 2:
>>>import  clr
>>>clr.AddReferenceToFile("AgentServerObjects.dll")
Traceback (most recent call last):
  File , line 0, in input##1
  File , line 0, in .ctor
  File , line 0, in AddPathList
  File , line 0, in CreateListFromExpressions
ValueError: Absolute path information is required.

Only when I write:
>>>import clr
>>>clr.AddReferenceToFile("C:\Documents and Settings\egironas\My 
>>>Documents\My 
>>>Apps\Py\IronPython-1.0-Beta1\Tutorial\AgentServerObjects.dll")

it works. Questions are why? How can I avoid to write all the path?
Best regards.

_________________________________________________________________
Charla con tus amigos en lĂ­nea mediante MSN Messenger: 
http://messenger.latam.msn.com/

_______________________________________________
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

Reply via email to