加载此程序集将产生与其他实例不同的授权集 [英] Loading this assembly would produce a different grant set from other instances

查看:20
本文介绍了加载此程序集将产生与其他实例不同的授权集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am getting following error at run-time "Loading this assembly would produce a different grant set from other instances" when calling a vb.net 1.1 assembly from a ASP.net 2.0 website. Any idea what could be the reason behind this error?

场景是:

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

There is one web application which is built as WebSite in ASP.NET 2.0. The webpages in this website loads a 2.0 vb.net assembly, which inturn to load a 1.1 vb.net assembly.

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

The code is failing at run time, in loading the assembly of 1.1 dll. Please help.

推荐答案

我在安装 .NET 4.5.1 时遇到了这个错误.

I had this error when I installed .NET 4.5.1.

我通过删除解决方案文件夹中的 .suo 文件来修复它(您可能需要显示隐藏文件才能看到它们).

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.

这篇关于加载此程序集将产生与其他实例不同的授权集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆