I am getting an error when running Code Analysis on a VS2012 solution (C#). I have 43 projects in this solution but 4 are failing with the following error:
CA0001 Error Running Code Analysis
CA0001 : Rule=Microsoft.Security#CA2122,
Target=Modules.Inspirations.Data.InspirationRepository.#AddImage(Modules.Inspirations.Models.InspirationImage) :
The following error was encountered while reading module 'Modules.Inspirations':
Method type parameter in position 0 is not valid.
[Errors and Warnings]
(Global)
The only thing I can think of is that there maybe an issue with the method parameter being a complex type (or something askew with the complex type itself). However, there are plenty of other methods that take a complex type as a parameter and the Code Analysis tool has no problems with those.
There seems to be no more detail available then the error message above. I've done a search for this but nothing has come up that fixes this issue.