[Freeswitch-dev] mod_managed loader loadfile
Michael Giagnocavo
mgg at giagnocavo.net
Wed Apr 22 09:29:52 PDT 2009
There's actually a bit patch I have yet to apply to mod_managed that will fix loading as well as add shadow copying so in-use files can be replaced on Windows.
From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Diego Toro
Sent: Wednesday, April 22, 2009 10:09 AM
To: freeswitch-dev at lists.freeswitch.org
Subject: [Freeswitch-dev] mod_managed loader loadfile
I have assembly that references others assembly in my managed AppFunction, when FS start it fail with error message: can't load reference assembly...
I checked Loader code and i changed next line: System.Reflection.Assembly.LoadFile(f) in loadAssemblies(string managedDir) method by System.Reflection.Assembly.LoadFrom(f); (LoadFile by LoadFrom) and FS start with no problem.
Is possible use LoadFrom instead of LoadFile in Loader.cs code ?
Information about LoadFrom and LoadFile:
http://blogs.msdn.com/suzcook/archive/2003/09/19/loadfile-vs-loadfrom.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090422/219de0e3/attachment.html
More information about the Freeswitch-dev
mailing list