提交 fa5289ea authored 作者: Michael Giagnocavo's avatar Michael Giagnocavo

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

上级 8877d1d3
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论