views:

372

answers:

2

I've created a simple httpModule, registered it on GAC and added it to the global web.config.

I've made some changes to the module, updated the version and changed it also on the 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.

Any thoughts on what the hell is happening?

Thanks, Bruno Figueiredo http://www.brunofigueiredo.com

A: 

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.

Cristian Libardo
thanks... If everything else fails I'll try BindingRedirect.
Bruno Shine
+1  A: 

Don't use the 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/

Tigraine
We use GAC because the html generated by the module must be added to every application hosted by the IIS.
Bruno Shine