пятница, 24 февраля 2012 г.

.NET. Version compatibility issue walkaround

Issue:

Application uses Library.dll from the same solution and UI.dll from external solution.
Problem is, that UI.dll wants Library.dll too.

With this scheme I faced the issue, when application refused to work with messages about assambly versions.

The first walkaround was to use bindingRedirect element in the configuration. But this solution doesn't woek if you are changing Library.dll and it's version as well.

I stayed with next solution. I turned off assembly signing locally for the UI.dll. If .NET assembly is not signed, it doesn't matter which version you used to build dll. You can use UI.dll with eny higher version of Library.dll.

пятница, 10 февраля 2012 г.

.NET + Fiddler

If you want to have Fiddler like net statistics in your .NET application you can download FiddlerCore library.
http://www.fiddler2.com/fiddler/Core/

Integration with any .NET application can give simply fantastic results:


-- 22 GET http://dashboard.re.tfn.com/ccnetda200 text/xml
-- ServerConnected: 2/10/2012 5:44:45 PM
-- ClientDoneResponse: 2/10/2012 5:44:46 PM