VSAE malicious compiling challenges

25 Oct

Below a memory dump for myself.

The challenge


During compiling your management Pack in VSAE you get this nice blurry error message:

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 = OpsLogix.IMP.VMWare.VirtualMachine.Monitoring)


The Investigation


Out of my almost 13 years for MP authoring experience I know most of the time this error above is due to a missing end tag $ of a property reference or a misspelled property name.

For example


Should be


But this time it’s different … after doing some investigations by setting the management fragments “Build Action” to “None” in the VSAE project I found out that it was due to the external referenced datatasource Accessibility property.

The solution


So after I changed the Accessibility property of the external referenced datasource from :




… my project compiled fine.

What makes of course sense and if I was using the autocomplete in VSAE this was never happened since the autocomplete will not provide you any Internal references at all…. But of course to be faster I copied it over manually , so my bad … at the end I lost my time due to investigations anyway hope you won’t.

The end


Hope I saved you some time.

Happy scomming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: