强制 ASP.NET 应用程序从 bin 而不是 GAC 加载程序集 [英] Forcing the ASP.NET Application to load the assembly from bin not from GAC

查看:21
本文介绍了强制 ASP.NET 应用程序从 bin 而不是 GAC 加载程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以强制我的 asp.net 应用程序从本地 bin 目录加载程序集,因为 gac 中有另一个同名的旧版本的程序集?

Is there any way to force my asp.net application to load the assembly from local bin directory since there is another older version of the assembly with the same name in the gac?

我无法删除 gac 版本,因为其他应用程序正在使用它,并且在将新版本添加到 gac 时遇到了一些困难.

I can't delete the gac version since other applications are using it and I am facing some difficulties when adding the newer version to the gac.

推荐答案

找到了

要强制您的应用程序从本地 bin 目录读取,您必须从程序集中删除签名,然后应用程序将从 bin 加载程序集.

To force your application to read from local bin directory you have to remove signing from your assembly and then the application will load the assembly from bin.

感谢 Wyatt Barnett 和 murad.

Thanks Wyatt Barnett and murad.

这篇关于强制 ASP.NET 应用程序从 bin 而不是 GAC 加载程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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