Forcing the ASP.NET Application to load the assembly from bin not from GAC(强制 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 加载程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:强制 ASP.NET 应用程序从 bin 而不是 GAC 加载程序集


基础教程推荐
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01