From fa5289eab72804e04195b0374b69e0d903f204a3 Mon Sep 17 00:00:00 2001 From: Michael Giagnocavo Date: Wed, 16 Nov 2011 10:19:19 -0700 Subject: [PATCH] Using load instead of LoadFrom fixes some crashes and loading issues. --- src/mod/languages/mod_managed/managed/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/languages/mod_managed/managed/PluginManager.cs b/src/mod/languages/mod_managed/managed/PluginManager.cs index c9e657fc6a..f9bcf7f5b5 100644 --- a/src/mod/languages/mod_managed/managed/PluginManager.cs +++ b/src/mod/languages/mod_managed/managed/PluginManager.cs @@ -283,7 +283,7 @@ namespace FreeSWITCH { protected override bool LoadInternal(string fileName) { Assembly asm; try { - asm = Assembly.LoadFrom(fileName); + asm = Assembly.Load(System.IO.File.ReadAllBytes(fileName)); } catch (Exception ex) { Log.WriteLine(LogLevel.Info, "Couldn't load {0}: {1}", fileName, ex.Message); return false;