Thank you for your answer,
Actually checking the code doesn't seem to contain any LoadFrom or similar

I have to say that i never looked at the Castle code before (always, and 
simply, used the nuGet package)

I'll take a deeper look into it to check if there is something else, and if 
i cannot find anything then.. it will probably be a problem with my 
application/dlls

Again, thank you for your answer and time,
i'll keep you posted

Carlo

Il giorno venerdì 13 giugno 2014 17:44:55 UTC+2, hammett ha scritto:
>
> Yeah, LoadFrom is for those who know what they are doing (see 
>
> http://hammett.castleproject.org/index.php/2011/03/using-loading-contexts-effectively/).
>  
>
>
> However, I dont think Assembly InDirectory that we own is using 
> LoadFrom, if it is, we should fix it to use Load. Patch is welcome. 
>
>
> On Fri, Jun 13, 2014 at 4:50 AM, Carlo Ruggiero 
> <[email protected] <javascript:>> wrote: 
> > Hello there, 
> > While trying to load an assembly using this code: 
> > 
> >> mainContainer.Install(FromAssembly.InDirectory(new 
> >> AssemblyFilter(@"Dll\Folder").FilterByName(a => 
> >> a.Name.Equals("My.Dll.ToLoad", 
> >> StringComparison.InvariantCultureIgnoreCase)))); 
> > 
> > 
> > I get this error: 
> > 
> >> Managed Debugging Assistant 'LoadFromContext' has detected a problem in 
> >> 'C:\Dev\MyProgram\Release\MyProgram.exe'. 
> >> 
> >> 
> >> 
> >> Additional information: The assembly named 'b.Edge.Domain' was loaded 
> from 
> >> 'file:///C:/Dev/MyProgram/Release/Dll/Folder/Referenced.DLL' using the 
> >> LoadFrom context. The use of this context can result in unexpected 
> behavior 
> >> for serialization, casting and dependency resolution. In almost all 
> cases, 
> >> it is recommended that the LoadFrom context be avoided. This can be 
> done by 
> >> installing assemblies in the Global Assembly Cache or in the 
> ApplicationBase 
> >> directory and using Assembly.Load when explicitly loading assemblies. 
> > 
> > 
> > Actually the Referenced.DLL is referenced by My.Dll.ToLoad, and i cannot 
> > disable any exception from Visual Studio for work reasons. 
> > 
> > So, the point is: 
> > Am I doing something wrong? 
> > Is there a way to resolve this problem? 
> > 
> > Thank you in advance for any answer, 
> > Sincerely 
> > 
> > Carlo 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Castle Project Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
>
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/castle-project-users. 
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Cheers, 
> hammett 
> http://www.d-collab.com/ 
> http://www.hammettblog.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to