Using load instead of LoadFrom fixes some crashes and loading issues.

This commit is contained in:
Michael Giagnocavo 2011-11-16 10:19:19 -07:00
parent 8877d1d36d
commit fa5289eab7
1 changed files with 1 additions and 1 deletions

View File

@ -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;