Is this still an issue? Provide a config file like this:
<?xml version='1.0' encoding='UTF-8'?> <configuration> <configSections> <section name='microsoft.scripting' requirePermission='false' type='Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'/> </configSections> <microsoft.scripting> <languages> <language extensions='.py' displayName='IronPython 2.6.1' type='IronPython.Runtime.PythonContext, IronPython, Version=2.6.10920.0, Culture=neutral, PublicKeyToken=null' names='IronPython;Python;py'/> <language extensions='.rb' displayName='IronRuby' type='IronRuby.Runtime.RubyContext, IronRuby, Version=0.9.4.0, Culture=neutral, PublicKeyToken=null' names='IronRuby;Ruby;rb'/> </languages> <options> <set language='Ruby' option='LibraryPaths' value='C:\ironruby\lib\IronRuby;C:\ironruby\lib\ruby\site_ruby\1.8;C:\ironruby\lib\ruby\site_ruby;C:\ironruby\lib\ruby\1.8'/> </options> </microsoft.scripting> </configuration> Host IronRuby like this: var setup = ScriptRuntimeSetup.ReadConfiguration(); scriptRuntime = Ruby.CreateRuntime(setup); Engine = Ruby.GetEngine(Runtime); Context = Ruby.GetExecutionContext(Engine); // You can use Context.Loader.SetLoadPaths(IEnumerable<string> paths) to replace the load paths at run-time On Mon, Mar 1, 2010 at 2:21 AM, Mohammad Azam <li...@ruby-forum.com> wrote: > I completely forgot the paths that I need to setup to use open-uri in > IronRuby when using with C#. I need to put those paths in my App.config > to work with open-uri. Can anyone please paste those sections here? I > keep forgetting those sections that I need to include in my App.config. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core