I've created a custom health rule for checking which mode solutions were built in (following this guide) but am having trouble deploying it. When deploying from VS2010, I get

Error occurred in deployment step 'Add Solution': Health analyzer rule registration
requires that the {0} assembly be registered in the global assembly cache.

I've tried using management shell to deploy it, but it silently fails when I try to activate it, which uninstalls it.

Does anyone have any experience of health rules? There's very little on Google about this error. Thanks!

  • Did you check if the assembly is in the WSP (rename to CAB and check)? Dec 18, 2012 at 15:06
  • Yes, it's there, and set to deploy to GAC.
    – MorayM
    Dec 18, 2012 at 15:53
  • Did you create this as a Farm Solution and not a Sandboxed Solution? Feb 21, 2013 at 18:02
  • It's a farm solution.
    – MorayM
    Mar 4, 2013 at 9:16

1 Answer 1


please make sure your following this:

How to: Create a Feature to Register a Health Rule


sounds like you got through that part fine! but the part that its failing on i think is the gac registering! its looking in the file but cant find it as its looking in another location! so follow this aswell to make sure that your app is looking in the gac and nowhere else:

How to: Deploy a Health Rule with a Solution Package


taken from the above link:

<Solution SolutionId="00000000-0000-0000-0000-000000000000"
    <FeatureManifest Location="FeatureFolderName\feature.xml" />
    <Assembly DeploymentTarget="GlobalAssemblyCache"
              Location="AssemblyName.dll" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.