2016-05-04 77 views
0

运行我的ASP.net Core 1.0 MVC站点时出现以下错误。它在同一解决方案中添加对本地项目的引用后开始。这些引用都声明为Web.config添加了一个标签,但显然这不适用于ASP.Net Core,而阅读appsettings.json文件就是它失败的地方。在ASP.net中加载Newtonsoft.Json时出错Core MVC应用程序

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch.

回答

0

想通了。我必须经历解决方案中的所有项目,并将其更改为使用.Net Framework 4.6。显然这个问题的根源是从4.5.x到4.6。

相关问题