Quick post here. Hopefully you find this before spending an hour on it like I did. It ended up being a typo in a write action type id.
Basically, it simply came down to changing this:
<WriteAction ID=”WA” TypeID=”MyMp.MyWriteActin”>
To this:
<WriteAction ID=”WA” TypeID=”MyMp.MyWriteAction”>
Lesson learned – be careful when authoring XML directly and use intellisense when it’s available.
Below is the full error I receive by the Visual Studio Authoring Extensions.
Error 72 Detected malicious verification code when verifying element of type Microsoft.EnterpriseManagement.Configuration.ManagementPackRule with inner exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.EnterpriseManagement.Configuration.ManagementPackRule.VerifyDataTypes(Dictionary`2 moduletypes)
at Microsoft.EnterpriseManagement.Configuration.ManagementPackRule.Verify(VerificationContext context)
at Microsoft.EnterpriseManagement.Configuration.Verification.VerificationEngine.VerifyCollectionItems(Object context) (Path = DR.DiscoveryAutomation) Management Pack Display Name.mpx 11 10 Discovery Automation
this happens when you refer to a modüle (ds, write action , probe action) that is not existing.