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
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
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
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
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
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/
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
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
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,
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
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
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
12 matches
Mail list logo