3
Vote

CA0053

description

I get the following error when running code analysis on my SharePoint 2010 project.
 
CA0053 : Unable to load rule assembly 'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\rules\spdisposecheckrules.dll': Could not load file or assembly 'file:///c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\rules\spdisposecheckrules.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
 
I've put both SPDisposeCheckRules.dll and SPDisposeCheck.exe (as the instructions says) in the Rules folder.
Also, I dont get any new rule sets to choose from in Properties - Code Analysis

comments

ehjalmar wrote Jul 21, 2011 at 9:54 AM

This solved "Unable to load rule assembly..." for me: go to properties of the SPDisposeCheckRules.dll and click "unblock".

thoqbk wrote Jul 26, 2012 at 10:57 AM

Hi, how did you get the "Unblock" button on your "Properties" panel ? I am running Windows Server 2008 R2 and I have nothing on mine...

wrote Feb 14, 2013 at 2:25 AM

edwinzhao wrote May 14, 2014 at 7:57 AM

"unblock" just solved my problem. It is just on the button of the default tab in dll property.

wrote May 14, 2014 at 7:57 AM