Hi, finally I was able to fix the 0x80131043 error. I attached the sample with no errors.
If you open and modify the policy.config you'll have the 0x80131043 again, here is the description of this error code:
Code: Select all
/// When installing multi-file assemblies into the GAC, the hash of each
module is
/// checked against the hash of that file stored in the manifest. If the
/// hash of one of the files in the multi-file assembly does not match
what is recorded
/// in the manifest, FUSION_E_UNEXPECTED_MODULE_FOUND will be returned.
/// The name of the error, and the text description of it, are somewhat
confusing.
/// The reason this error code is described this way is that the
internally,
/// Fusion/CLR implements installation of assemblies in the GAC, by
installing
/// multiple "streams" that are individually committed.
/// Each stream has its hash computed, and all the hashes found
/// are compared against the hashes in the manifest, at the end of the
installation.
/// Hence, a file hash mismatch appears as if an "unexpected" module was
found.
FUSION_E_UNEXPECTED_MODULE_FOUND = 0x80131043,
In resume, I shouldn't modify the policy config file after that the policy assembly was generated, because a hash of the config file is stored on the assembly.
Regards.
FOLLOW US
Get the latest news in Application Packaging