[Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config
will at hotgazpacho.org
Mon Jun 21 11:46:37 EDT 2010
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.
On Mon, Jun 21, 2010 at 11:39 AM, Mohammad Azam <azamsharp at gmail.com> wrote:
> I am using .NET 4.0 with IronRuby to invoke some methods on WatiN framework
> I keep getting the following error when loading the WatiN assemblies:
> C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec
> `require': A
> n attempt was made to load an assembly from a network location which would
> caused the assembly to be sandboxed in previous versions of the .NET
> This release of the .NET Framework does not enable CAS policy by default,
> so thi
> s load may be dangerous. If this load is not intended to sandbox the
> assembly, p
> lease enable the loadFromRemoteSources switch. See
> k/?LinkId=155569 for more information. (LoadError)
> So, I went to the App.config file of my project and added the following
> <?xml version="1.0" encoding="utf-8" ?>
> <loadFromRemoteSources enabled="true" />
> I tried running it again and encountered the same problem. Any ideas!
> Mohammad Azam
> MVP (Microsoft Valuable Professional)
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core