Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Ivan Porto Carrero
The load path basically determines where ir.exe looks for assemblies and files to load. if you do $LOAD_PATH.unshift(File.dirname(__FILE__) +"/bin/Debug") and then require Watin.Core.dll the CLR knows where to look for your DLL's including the referenced assemblies You might have gotten a correc

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Ivan Porto Carrero wrote: > instead of requiring the files with path. maybe try to set the load path > > $:.unshift( File.dirname(__FILE__) + "/bin/Debug") > require 'BusinessObjects.dll' > require 'WatiN.Core.dll' > require 'Microsoft.mshtml.dll' > require 'Interop.SHDocVw.dll' > > I also think

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Ivan Porto Carrero
instead of requiring the files with path. maybe try to set the load path $:.unshift( File.dirname(__FILE__) + "/bin/Debug") require 'BusinessObjects.dll' require 'WatiN.Core.dll' require 'Microsoft.mshtml.dll' require 'Interop.SHDocVw.dll' I also think that the last 2 are redundant.. they should

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Actually facing the same problem on VS 2008. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
I created a new project in Visual Studio 2008 and tried running the same code and it worked without any problems. It did not gave me load error for the Interop.SHDocVw.dll. Looks like there are some issues with WatiN when using it on .NET 4.0 framework. -- Posted via http://www.ruby-forum.com/

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Got the first problem solved by editing the configuration file. Now, facing problem loading the Interop.SHDocVw assembly. Here is the complete code: require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll' require File.dirname(__FILE__) + '/bin/Debug

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Thanks for the help! I edited the IronRuby configuration file and now the error has disappeared. -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Ivan Porto Carrero
wherever you installed ironruby. it's called ir.exe.config for me in C:\ironruby\bin --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero On Mon, Jun 21, 2010 at 5:49 PM, Mohammad Azam wrote: > Will Green wrote: > > Your app is not the thing trying to load that assembly,

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
Will Green wrote: > Your app is not the thing trying to load that assembly, IronRuby is. So, > you'll need to add that to IronRuby's app.config. > > That said, why are you trying to load an assembly from a network > location in > your tests? That is, IMO bad testing practice. > > -- > Will Green

Re: [Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Will Green
Your app is not the thing trying to load that assembly, IronRuby is. So, you'll need to add that to IronRuby's app.config. That said, why are you trying to load an assembly from a network location in your tests? That is, IMO bad testing practice. -- Will Green http://hotgazpacho.org/ On Mon, Ju

[Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config

2010-06-21 Thread Mohammad Azam
I am using .NET 4.0 with IronRuby to invoke some methods on WatiN framework 2.0.10.928. I keep getting the following error when loading the WatiN assemblies: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec testacc ountbalanceUI.rb C:/IronRuby/lib/ruby/site_ruby/1.8/rubyg