DLL Will Not Load in FxCop on Windows Server 2008

I was attempting to install the SharePoint dispose checker into my FxCop program using the rules dll found here, http://spdisposecheckstatic.codeplex.com/.  After getting everything install I tried running FxCop and received the getting an error that the application could not properly load the assembly.


Fix:

-Close FxCop

-Right click on the SPDisposeCheckRules.dll and go to the properties of the file.


-Click the 'Unlock' button on the General tab of the properties form.


-Fun FxCop again and the error should be gone.

Comments

Popular posts from this blog

Add User As Local Administrator On Domain Controller

Calling Dataverse Web API in PowerShell using Client Credentials

Windows Server 2008R2 VMs Shut Down After 1 to 2 Hours