I've created a simple httpModule, registered it on GAC and added it to the global web.config.
我创建了一个简单的httpModule,在GAC上注册并将其添加到全局web.config中。
I've made some changes to the module, updated the version and changed it also on the web.config.
我对模块进行了一些更改,更新了版本并在web.config上也进行了更改。
What happens is that i keep getting the old version. I've restarted the computer, removed it from the GAC, deleted the consumer app .net temp files, but still the consumer app render the old html code from the httpModule.
会发生什么事情,我继续得到旧版本。我重新启动了计算机,将其从GAC中删除,删除了消费者应用程序.net临时文件,但仍然是消费者应用程序从httpModule呈现旧的html代码。
Any thoughts on what the hell is happening?
关于到底发生了什么的任何想法?
Thanks, Bruno Figueiredo http://www.brunofigueiredo.com
谢谢,Bruno Figueiredo http://www.brunofigueiredo.com
2 个解决方案
#1
0
Is it possible you have an older version lying around in your bin folder? Another alternative is that some other code is comipled against the older version. If all else fails you can use bindingRedirect to force your new version.
您的bin文件夹中是否有可能存在旧版本?另一种选择是其他一些代码与旧版本进行了编译。如果所有其他方法都失败了,您可以使用bindingRedirect强制使用新版本。
#2
1
Don't use the GAC.
不要使用GAC。
Simple, any dependencies you have should be binary deployed to avoid versioning issues.
很简单,您应该进行二进制部署以避免版本控制问题。
I blogged on this before: http://www.tigraine.at/2008/10/13/handling-dependencies/
我之前在博客上写过:http://www.tigraine.at/2008/10/13/handling-dependencies/
#1
0
Is it possible you have an older version lying around in your bin folder? Another alternative is that some other code is comipled against the older version. If all else fails you can use bindingRedirect to force your new version.
您的bin文件夹中是否有可能存在旧版本?另一种选择是其他一些代码与旧版本进行了编译。如果所有其他方法都失败了,您可以使用bindingRedirect强制使用新版本。
#2
1
Don't use the GAC.
不要使用GAC。
Simple, any dependencies you have should be binary deployed to avoid versioning issues.
很简单,您应该进行二进制部署以避免版本控制问题。
I blogged on this before: http://www.tigraine.at/2008/10/13/handling-dependencies/
我之前在博客上写过:http://www.tigraine.at/2008/10/13/handling-dependencies/