@bobnoordam

Category: Programming

Failed to update binding redirects […] Exception has been thrown by the target of an invocation.

Scope: This seems to happen only on .NET framework 4.8 projects (YMMV) Problem: A combination of assembly loading results in different grant sets Workaround: Create a new DWORD registry value called LoaderOptimization as below: [ see also 1 ] [ see also 2 ]

TF30063 Error – You Are Not Authorized To Access Team Foundation Service Error

Working with multiple TFS servers is prone to problems with cached credentials when switching accounts, especially on laptop systems that suspend/resume across domain authentication. Clear the TFS cache by deleting all files to remove cached credentials, and force re-authentication.

Re-activating the create unit test function in Visual Studio 2012

Visual studio 2010 had a quick rightclick context menu to create unit test which has disappeared in VS2012, to move to a more general approach that isnt directly tied in with the MS unit testing system. It is possible however to re-enable the menu function or use a keyboard shortcut. full writeup source: http://serena-yeoh.blogspot.nl/2013/02/visual-studio-2012-create-unit-test.htmlhttp://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx Your […]

Code smells

Within classes Comments Putting comments inside your code risks obscuring the code, instead of making things more clear. Comment the class and the methods you expose. Keep comments out of the code itself. Only place the WHY in comments, never the WHAT. Long methods A shorter method is better readable, easier to understand en easier […]