Description of the problem
When I tried to execute code metrics in Visual Studio 2013 for a C # project (Analyze -> Calculate Metrics for Solution), I get the following error:
"an error occurred while calculating code metrics"
This error occurred even for a newly created project, so it was not associated with some problematic links.
Decision
To solve this problem, I ran the following command as an administrator:
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"
Conclusion
- I checked that this problem does not occur in the newly installed VS 2013 (installer with update 4 enabled), which means that this may be due to the upgrade to "update 4".
source share