Unknown code analysis error

2.2k views Asked by At

I am having an issue with code analysis. I am running vs 2012 on a win 8 machine. The error I am getting is: CA0001 Error Running Code Analysis CA0001 : An unknown error occurred while running Code Analysis. [Errors and Warnings] (Global)

That is all the info I get. I have tried looking at the CodeAnalysisLog.xml for each of the projects but they are all empty.

I have downloaded a new fresh copy of the trunk that everyone else is working from, and I am still getting this issue. No one else on my team is getting these, just me. I am guessing it has something to do with my machine and not the project since the code base works for everyone else.

I am at a loss, I have no idea where to go from here.

2

There are 2 answers

0
scott lafoy On

I have finally solved my issue. This worked for me but I am not sure if it will work for anyone else having issues.

I ended up turning code analysis off for all 18 of my projects that were throwing this error. I built and ran the project successfully, and afterwards I turned on code analysis for all the projects I had turned it off for. It now works no problem.

0
ankit On

Delete all the unused temp files from C:\Users\%User%\AppData\Local\Temp.(%temp%)