9

从 ASP.net 2.0 网站调用 vb.net 1.1 程序集时,我在运行时收到以下错误“加载此程序集会产生与其他实例不同的授权集”。知道这个错误背后的原因是什么吗?

场景是:

在 ASP.NET 2.0 中有一个 Web 应用程序被构建为 WebSite。本网站的网页加载了 2.0 vb.net 程序集,而后者又加载了 1.1 vb.net 程序集。

代码在运行时失败,加载 1.1 dll 的程序集。请帮忙。

4

2 回答 2

18

I had this error when I installed .NET 4.5.1.

I fixed it by deleting the .suo files in my solution folder (you may have to show hidden files to see them).

Next time I started it up everything was back to normal.

于 2013-12-12T10:44:08.057 回答
1

我已经找了好几个星期了,找到了罪魁祸首。

在我的情况下,它是解决方案中的新代码签名证书,而我的本地证书存储中的旧证书。

当我安装新证书时,错误消失了。

于 2014-04-25T11:45:57.370 回答