title: Scaffolding controller doesn't work with visual studio 2013 update 2
body: <h2>PROBLEM:</h2>
  
  <p>I have updated to Visual Studio 2013 update 2 and now I cannot scaffold controllers.  </p>
  
  <p>The problem is not project specific: when I try to scaffold a controller, I get the following error in ALL and ANY project:</p>
  
  <pre><code>There was an error running the selected code generator:
  'Exception has been thrown by the target of an invocation.'
  </code></pre>
  
  <p>It was working before updating to Visual Studio 2013 update 2.</p>
  
  <p>Have googled the issue to death, but none of the various suggestions work </p>
  
  <p>Eg:</p>
  
  <ol>
  <li><p>Commenting out OnModelCreating in my context;</p></li>
  <li><p>Removing packages such as MvcScaffolding, etc (I have none installed and it doesn't work with ANY project);</p></li>
  </ol>
  
  <p>I have modified/customised some of the templates, but it was working after the changes.</p>
  
  <h2>EDIT:</h2>
  
  <p>I uninstalled Visual Studio 2013 Update 2 and thereby reverted to Visual Studio version 12.0.21005.1 REL.</p>
  
  <p>The problem has disappeared.  Therefore, the problem is quite definitely with Update 2.  </p>
  
  <h2>QUESTION:</h2>
  
  <p>Does anyone (including Microsoft) know of a fix?</p>
  
  <h2>EDIT 2:</h2>
  
  <p>Farruk Subhani's answer does not address the question:  The question clearly states that removing references to MVCScaffolding does not solve the issue.  </p>
  
  <p>I have added a 200 point bounty, please address the question as clearly stated.</p>