I have a ruby script that telnets into something and creates an output file.
I am trying to call the script by using the following code:
ScriptEngine rubyengine = IronRuby.Ruby.CreateEngine();
rubyengine.ExecuteFile(@"\Documents\query.rb");
and am getting an 'Operation is not valid due to the current state of the object' error.
the ruby script runs flawlessly when executed individually outside of the code, so I know it works fine.
Any ideas?
I am using .NET 4 and the newest version of IronRuby