强制 ASP.NET 应用程序从 bin 而不是 GAC 加载程序集

3

本文介绍了强制 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 加载程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

函数委托与函数
Func Delegate vs Function(函数委托与函数)...
2023-11-11 C#/.NET开发问题
6

针对委托检查 MethodInfo
Checking a MethodInfo against a delegate(针对委托检查 MethodInfo)...
2023-11-11 C#/.NET开发问题
7

如何从 lambda 表达式中获取引用实例的实例
How to get the instance of a referred instance from a lambda expression(如何从 lambda 表达式中获取引用实例的实例)...
2023-11-11 C#/.NET开发问题
4

如何为具有空目标的实例方法创建委托?
How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)...
2023-11-11 C#/.NET开发问题
6