Using load instead of LoadFrom fixes some crashes and loading issues.
This commit is contained in:
parent
8877d1d36d
commit
fa5289eab7
|
@ -283,7 +283,7 @@ namespace FreeSWITCH {
|
||||||
protected override bool LoadInternal(string fileName) {
|
protected override bool LoadInternal(string fileName) {
|
||||||
Assembly asm;
|
Assembly asm;
|
||||||
try {
|
try {
|
||||||
asm = Assembly.LoadFrom(fileName);
|
asm = Assembly.Load(System.IO.File.ReadAllBytes(fileName));
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Log.WriteLine(LogLevel.Info, "Couldn't load {0}: {1}", fileName, ex.Message);
|
Log.WriteLine(LogLevel.Info, "Couldn't load {0}: {1}", fileName, ex.Message);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue