Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
0.80.3/[BreezeController]-错误_Breeze - Fatal编程技术网

0.80.3/[BreezeController]-错误

0.80.3/[BreezeController]-错误,breeze,Breeze,刚刚从版本0.78.3更新到Breeze的新版本0.80.3。在新版本中,我在Fiddler中得到了以下信息: 500 localhost:50372 /api/Breeze/Metadata {"Message":"An error has occurred.", "ExceptionMessage":"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property fo

刚刚从版本0.78.3更新到Breeze的新版本0.80.3。在新版本中,我在Fiddler中得到了以下信息:

500  localhost:50372  /api/Breeze/Metadata


{"Message":"An error has occurred.",
"ExceptionMessage":"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.",
"ExceptionType":"System.Reflection.ReflectionTypeLoadException",
"StackTrace":"   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)\r\n   at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Breeze.WebApi.BreezeConfig.<get_Instance>b__1(Assembly a)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Breeze.WebApi.BreezeConfig.get_Instance()
at Breeze.WebApi.JsonFormatter.Create()
at Breeze.WebApi.BreezeControllerAttribute..cctor()"
}
500本地主机:50372/api/Breeze/Metadata
{“消息”:“发生了错误。”,
“ExceptionMessage”:“无法加载一个或多个请求的类型。有关详细信息,请检索LoaderExceptions属性。”,
“ExceptionType”:“System.Reflection.ReflectionTypeLoadException”,
“StackTrace”:“at System.Reflection.RuntimeModule.GetTypes(RuntimeModule模块)\r\n at System.Reflection.RuntimeModule.GetTypes()
在System.Reflection.Assembly.GetTypes()处
位于Breeze.WebApi.BreezeConfig.b__1(程序集a)
在System.Linq.Enumerable.d_u14`2.MoveNext()中
位于System.Linq.Enumerable.WhereEnumerableInterator`1.MoveNext()
位于System.Collections.Generic.List`1..ctor(IEnumerable`1集合)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在Breeze.WebApi.BreezeConfig.get_Instance()中
在Breeze.WebApi.JsonFormatter.Create()上
在Breeze.WebApi.BreezeControllerAttribute..cctor()上
}
我以前有[BreezeController]属性。问题似乎是JSON序列化程序。仅使用[ODataActionFilter]就可以获得元数据,但这还不够

我看了文件,但我不认为我错过了一个变化。使用0.78.3的备份,它会再次工作。有什么想法吗? 和:“检索LoaderExceptions属性”。我怎么得到这些


谢谢

这是一个bug,已在V0.80.5中修复。请让我们知道任何问题

在80.3中,我们在服务器上使用程序集探测来查找任何BreezeConfig子类的实例。在尝试对引用的程序集之一进行反射时,此代码似乎失败。您可以尝试使用80.2,因为此代码不执行相同的探测。(所有旧版本都可以在breeze下载页面的底部找到)如果这有效,请让我知道,我将尝试获得一个修复,跳过任何无法反映的程序集。它与0.80.2一起工作。谢谢你的信息。我的项目中是否缺少一个参考资料?一切都正常…萨沙-我不这么认为。我们只需要更新服务器端探测逻辑,以更好地处理异常。