运行我的ASP.net Core 1.0 MVC站点时出现以下错误。它是在同一解决方案中添加对本地项目的引用之后开始的。所有引用都声明要向Web.config添加标记,但显然这不适用于ASP.Net Core并且读取appsettings.json文件是它失败的地方。
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 :(得分:0)
想出来。我必须完成解决方案中的所有项目并将其更改为使用.Net Framework 4.6。很明显,这个问题的根源已经从4.5.x修复到4.6。