[IronPython] ValueError: Absolute path information is required

Dino Viehland dinov at exchange.microsoft.com
Fri Jan 6 18:43:43 CET 2006

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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Paparipote .
Sent: Friday, January 06, 2006 9:20 AM
To: users at lists.ironpython.com
Subject: [IronPython] ValueError: Absolute path information is required

In Exercise 1: Merlin the Wizard, task 2:
>>>import  clr
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 

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: 

users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list