The management pack could not be verified error when adding a custom property to a UNIX class extension
Article
This article helps you fix an issue where The management pack could not be verified error occurs when you add a custom property to a UNIX class extension.
Original product version: System Center 2012 Service Manager Original KB number: 2834765
Symptoms
You use the Authoring console in System Center 2012 Service Manager to extend the class from a UNIX management pack to an unsealed management pack. When you try to add a new property, you get the following error message:
The management pack could not be verified due to this error:
Service Manager Authoring Tool
The management pack could not be verified due to this error:
Verification failed with 1 errors:
Error 1:
Found error in
1|RHI.UNIXComputer.CI.ClassExtension|1.0.0.0|RHI.UNIXComputer.CI.ClassExtension.Category|| with message:
The Target attribute value is not valid. Element RHI.UNIXCOMPUTER.CI.ClassExtension.Category reference a Target element that cannot be found
Cause
This issue can occur if a management pack public key token is specified for an unsealed management pack. For example, you will find an entry similar to the following in the XML file for the management pack:
When the authoring tool tries to validate the management pack XML file, the process fails because the management pack is not sealed, so we cannot add a new property successfully.
Resolution
To resolve this issue, remove the <ManagementPackPublicKeyToken>2abcXyz2d6760a2b</ManagementPackPublicKeyToken> entry from the XML file.
More Information
The line <ManagementPackPublicKeyToken>2abcXyz2d6760a2b</ManagementPackPublicKeyToken> should be included only when you are going to seal the management pack. The public key token must match the .snk file that the management pack file will be sealed with.
This module provides the tools and information that you need to effectively use class extensions in finance and operations apps. It shows you how to enhance and extend the functionality of classes without altering their original source code. Additionally, the module covers key concepts, such as method wrapping and the chain of command, allowing for controlled, layered customization of system behavior.