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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Diego Toro
Sent: Wednesday, April 22, 2009 10:09 AM
To: freeswitch-dev@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 ?