RightsManagementFailureCode RightsManagementFailureCode RightsManagementFailureCode RightsManagementFailureCode Enum

定义

指定执行权限管理操作时可能出现的错误条件。Specifies error conditions that can occur when performing a rights management operation.

public enum class RightsManagementFailureCode
public enum RightsManagementFailureCode
type RightsManagementFailureCode = 
Public Enum RightsManagementFailureCode
继承
RightsManagementFailureCodeRightsManagementFailureCodeRightsManagementFailureCodeRightsManagementFailureCode

字段

Aborted Aborted Aborted Aborted -2147168447

已取消异步操作,或出现不可恢复的错误。Asynchronous operation canceled, or a non-recoverable error has occurred.

ActivationFailed ActivationFailed ActivationFailed ActivationFailed -2147168448

许可证激活失败;未正确配置权限管理服务。License activation failed; rights management services are not properly configured.

AdEntryNotFound AdEntryNotFound AdEntryNotFound AdEntryNotFound -2147168419

未在 Windows 身份验证下证书的 Active Directory (AD) 中找到当前用户。The current user was not found in the Active Directory (AD) for certification under Windows authentication.

AlreadyInProgress AlreadyInProgress AlreadyInProgress AlreadyInProgress -2147168456

请求的操作已在进行中。The requested operation is already in progress.

AuthenticationFailed AuthenticationFailed AuthenticationFailed AuthenticationFailed -2147168445

Internet 请求返回可能的身份验证错误(HTTP 错误 401)。Possible authentication error (HTTP error 401) returned by an Internet request. 或者,当前用户在无提示用户激活尝试中没有有效的域凭据。Or, the current user does not have valid domain credentials in a silent user activation attempt. 或者,无提示用户激活中的认证服务器不在本地 Intranet 或受信任的站点区域中。Or, the certification server in silent user activation is not in the local intranet or trusted sites zone.

BadGetInfoQuery BadGetInfoQuery BadGetInfoQuery BadGetInfoQuery -2147168494

传递了一个无效常量。An invalid constant was passed.

BindAccessPrincipalNotEnabling BindAccessPrincipalNotEnabling BindAccessPrincipalNotEnabling BindAccessPrincipalNotEnabling -2147168478

访问条件与递交给该绑定的启用主体不匹配。The access condition is not matched to the enabling principal that is handed into the bind.

BindAccessUnsatisfied BindAccessUnsatisfied BindAccessUnsatisfied BindAccessUnsatisfied -2147168477

当前用户不满足在最终用户许可证 (EUL) 中所定义的条件。The current user does not satisfy the conditions defined in the End Use License (EUL).

BindContentNotInEndUseLicense BindContentNotInEndUseLicense BindContentNotInEndUseLicense BindContentNotInEndUseLicense -2147168479

指定的资源不包含在许可证的任何工作节点中。The specified resource is not contained in any WORK node of the license.

BindIndicatedPrincipalMissing BindIndicatedPrincipalMissing BindIndicatedPrincipalMissing BindIndicatedPrincipalMissing -2147168476

启用主体与最终用户许可证 (EUL) 的颁布主体不匹配。The enabling principal does not match the issued principal of the End Use License (EUL).

BindIntervalTimeViolated BindIntervalTimeViolated BindIntervalTimeViolated BindIntervalTimeViolated -2147168465

受保护内容的定义时间段已到期;不再允许访问。The defined time period for the protected content has expired; access is no longer permitted.

BindMachineNotFoundInGroupIdentity BindMachineNotFoundInGroupIdentity BindMachineNotFoundInGroupIdentity BindMachineNotFoundInGroupIdentity -2147168475

当前计算机未在权限管理组标识中定义。The current machine is not defined within the rights managed group identity.

BindNoApplicableRevocationList BindNoApplicableRevocationList BindNoApplicableRevocationList BindNoApplicableRevocationList -2147168472

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindNoSatisfiedRightsGroup BindNoSatisfiedRightsGroup BindNoSatisfiedRightsGroup BindNoSatisfiedRightsGroup -2147168464

指定的权限组不包含在最终用户许可证 (EUL) 中。The specified rights group is not contained in the End Use License (EUL).

BindPolicyViolation BindPolicyViolation BindPolicyViolation BindPolicyViolation -2147168485

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindRevocationListStale BindRevocationListStale BindRevocationListStale BindRevocationListStale -2147168473

该许可证要求必须获取新的吊销列表。The license requires that a new revocation list must be acquired.

BindRevokedIssuer BindRevokedIssuer BindRevokedIssuer BindRevokedIssuer -2147168483

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindRevokedLicense BindRevokedLicense BindRevokedLicense BindRevokedLicense -2147168484

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindRevokedModule BindRevokedModule BindRevokedModule BindRevokedModule -2147168480

未正确配置权限管理服务。Rights management services are not properly configured.

BindRevokedPrincipal BindRevokedPrincipal BindRevokedPrincipal BindRevokedPrincipal -2147168482

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindRevokedResource BindRevokedResource BindRevokedResource BindRevokedResource -2147168481

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

BindSpecifiedWorkMissing BindSpecifiedWorkMissing BindSpecifiedWorkMissing BindSpecifiedWorkMissing -2147168463

最终用户许可证 (EUL) 不包含工作节点。The End Use License (EUL) contains no WORK node.

BindValidityTimeViolated BindValidityTimeViolated BindValidityTimeViolated BindValidityTimeViolated -2147168488

受保护内容的定义时间段已到期;不再允许访问。The defined time period for the protected content has expired; access is no longer permitted.

BrokenCertChain BrokenCertChain BrokenCertChain BrokenCertChain -2147168487

权限管理的证书链已中断。The rights management certificate chain is broken.

ClockRollbackDetected ClockRollbackDetected ClockRollbackDetected ClockRollbackDetected -2147168491

检测到时钟回滚。Clock rollback has been detected. 无法访问受保护的内容。Protected content cannot be accessed.

CryptoOperationUnsupported CryptoOperationUnsupported CryptoOperationUnsupported CryptoOperationUnsupported -2147168492

请求的加密操作不受支持。A cryptographic operation that was requested is not supported. 例如,传递 RMS 加密对象用于解密。For example, passing an RMS encrypting object for decrypting purposes.

DebuggerDetected DebuggerDetected DebuggerDetected DebuggerDetected -2147168416

由于检测到调试器,因此无法使用受限权限打开或发布内容。Cannot open or publish content with restricted permissions because a debugger has been detected.

EmailNotVerified EmailNotVerified EmailNotVerified EmailNotVerified -2147168422

无法验证用户的电子邮件地址。The user's email address cannot be verified.

EnablingPrincipalFailure EnablingPrincipalFailure EnablingPrincipalFailure EnablingPrincipalFailure -2147168496

无法启用指定主体The specified principal cannot be enabled

EncryptionNotPermitted EncryptionNotPermitted EncryptionNotPermitted EncryptionNotPermitted -2147168508

不允许加密。Encryption is not permitted.

EnvironmentCannotLoad EnvironmentCannotLoad EnvironmentCannotLoad EnvironmentCannotLoad -2147168501

无法加载 SecureEnvironmentThe SecureEnvironment cannot load.

EnvironmentNotLoaded EnvironmentNotLoaded EnvironmentNotLoaded EnvironmentNotLoaded -2147168502

无法加载 SecureEnvironmentThe SecureEnvironment cannot load.

ExpiredOfficialIssuanceLicenseTemplate ExpiredOfficialIssuanceLicenseTemplate ExpiredOfficialIssuanceLicenseTemplate ExpiredOfficialIssuanceLicenseTemplate -2147168425

在发行许可证模板中定义的授权时间段已到期;不再允许访问。The authorized time period defined in the issuance license template has expired; access is no longer permitted.

GlobalOptionAlreadySet GlobalOptionAlreadySet GlobalOptionAlreadySet GlobalOptionAlreadySet -2147168396

已设置指定的选项。The option specified has already been set.

GroupIdentityNotSet GroupIdentityNotSet GroupIdentityNotSet GroupIdentityNotSet -2147168455

未向客户端会话指定用户名A user name was not specified for the client session

HidCorrupted HidCorrupted HidCorrupted HidCorrupted -2147168442

在计算机激活尝试中使用的硬件 ID (HID) 的格式不正确。The Hardware ID (HID) used in a machine activation attempt is incorrectly formatted. 未正确配置权限管理服务。Rights management services are not properly configured.

HidInvalid HidInvalid HidInvalid HidInvalid -2147168423

在计算机激活尝试中使用的硬件 ID (HID) 无效。The Hardware ID (HID) used in a machine activation attempt is invalid. 未正确配置权限管理服务。Rights management services are not properly configured.

IdMismatch IdMismatch IdMismatch IdMismatch -2147168459

许可证中的内容 ID 与许可证存储会话的内容 ID 不匹配The content ID from the license does not match the content ID the license storage session

IncompatibleObjects IncompatibleObjects IncompatibleObjects IncompatibleObjects -2147168498

传递的对象类型与此操作不兼容。An object type passed is incompatible with this operation.

InfoNotInLicense InfoNotInLicense InfoNotInLicense InfoNotInLicense -2147168511

创建绑定许可证时,指定发行许可证,而不是最终用户许可证。When creating a bound license, an issuance license, not an end-use license, was specified.

InfoNotPresent InfoNotPresent InfoNotPresent InfoNotPresent -2147168495

丢失了某些信息。Some information is missing.

InstallationFailed InstallationFailed InstallationFailed InstallationFailed -2147168443

安装操作失败。An installation operation failed.

InvalidAlgorithmType InvalidAlgorithmType InvalidAlgorithmType InvalidAlgorithmType -2147168503

指定的算法类型无效。The algorithm type specified is invalid.

InvalidClientLicensorCertificate InvalidClientLicensorCertificate InvalidClientLicensorCertificate InvalidClientLicensorCertificate -2147168424

未正确配置权限管理服务。Rights management services are not properly configured.

InvalidEmail InvalidEmail InvalidEmail InvalidEmail -2147168437

RMS 服务器的电子邮件地址验证失败。RMS Server email address verification failed.

InvalidEncodingType InvalidEncodingType InvalidEncodingType InvalidEncodingType -2147168505

指定的编码类型无效。The specified encoding type is invalid.

InvalidHandle InvalidHandle InvalidHandle InvalidHandle -2147168468

环境或启用主体句柄无效。Either the environment or the enabling principal handle is invalid.

InvalidIssuanceLicenseTemplate InvalidIssuanceLicenseTemplate InvalidIssuanceLicenseTemplate InvalidIssuanceLicenseTemplate -2147168428

权限管理服务模板包含一个或多个错误。The Rights Management Services template contains one or more errors.

InvalidKeyLength InvalidKeyLength InvalidKeyLength InvalidKeyLength -2147168427

在键/值对中指定的键长度无效。The key length specified in a key/value pair is invalid.

InvalidLicense InvalidLicense InvalidLicense InvalidLicense -2147168512

其中一个证书的许可证结构无效。The license structure in one of the certificates is invalid.

InvalidLicenseSignature InvalidLicenseSignature InvalidLicenseSignature InvalidLicenseSignature -2147168510

无法验证权限管理签名的数字证书。Rights management signed digital certificate cannot be validated. (已签名证书可能已遭到篡改。)(The signed certificate may have been tampered.)

InvalidLockboxPath InvalidLockboxPath InvalidLockboxPath InvalidLockboxPath -2147168399

未正确配置权限管理服务。Rights management services are not properly configured.

InvalidLockboxType InvalidLockboxType InvalidLockboxType InvalidLockboxType -2147168400

未正确配置权限管理服务。Rights management services are not properly configured.

InvalidNumericalValue InvalidNumericalValue InvalidNumericalValue InvalidNumericalValue -2147168504

指定的数值无效。The numeric value specified is invalid.

InvalidRegistryPath InvalidRegistryPath InvalidRegistryPath InvalidRegistryPath -2147168398

指定的注册表路径无效。The specified registry path is invalid.

InvalidServerResponse InvalidServerResponse InvalidServerResponse InvalidServerResponse -2147168441

未正确配置权限管理服务。Rights management services are not properly configured.

InvalidTimeInfo InvalidTimeInfo InvalidTimeInfo InvalidTimeInfo -2147168431

指定的时间信息无效。The time information specified is invalid.

InvalidVersion InvalidVersion InvalidVersion InvalidVersion -2147168506

权限管理版本不正确。The rights management version is incorrect.

KeyTypeUnsupported KeyTypeUnsupported KeyTypeUnsupported KeyTypeUnsupported -2147168493

在键/值对中指定的键类型不受支持。The key type specified in a key/value pair is not supported.

LibraryFail LibraryFail LibraryFail LibraryFail -2147168497

库操作失败。A library operation failed.

LibraryUnsupportedPlugIn LibraryUnsupportedPlugIn LibraryUnsupportedPlugIn LibraryUnsupportedPlugIn -2147168474

不支持指定的库插件。The specified library plug-in is not supported.

LicenseAcquisitionFailed LicenseAcquisitionFailed LicenseAcquisitionFailed LicenseAcquisitionFailed -2147168460

无法从权限管理服务器获取最终用户许可证 (EUL)。An End Use License (EUL) could not be acquired from the rights management server.

LicenseBindingToWindowsIdentityFailed LicenseBindingToWindowsIdentityFailed LicenseBindingToWindowsIdentityFailed LicenseBindingToWindowsIdentityFailed -2147168429

当前用户凭据对于获取许可证无效。The current user credentials are not valid for acquiring a license.

ManifestPolicyViolation ManifestPolicyViolation ManifestPolicyViolation ManifestPolicyViolation -2147183860

操作违反权限管理清单策略。An operation is in violation of the rights management manifest policy.

MetadataNotSet MetadataNotSet MetadataNotSet MetadataNotSet -2147168433

无法设置指定元数据。The specified metadata could net be set.

NeedsGroupIdentityActivation NeedsGroupIdentityActivation NeedsGroupIdentityActivation NeedsGroupIdentityActivation -2147168450

未激活用户,或者未提交任何权限帐户证书 (RAC),并且未在许可证存储中找到匹配此会话所关联许可证的证书。The user is not activated, or no Rights Account Certificate (RAC) was submitted and none was found in the license store to match the license associated with this session.

NeedsMachineActivation NeedsMachineActivation NeedsMachineActivation NeedsMachineActivation -2147168451

必须先激活计算机,才能激活用户。The computer must be activated before the user can be activated.

NoAesCryptoProvider NoAesCryptoProvider NoAesCryptoProvider NoAesCryptoProvider -2147168397

未正确配置权限管理服务。Rights management services are not properly configured.

NoConnect NoConnect NoConnect NoConnect -2147168453

权限管理无法连接到为许可证服务器指定的 URI。Rights management cannot connect to the URI specified for the license server.

NoDistributionPointUrlFound NoDistributionPointUrlFound NoDistributionPointUrlFound NoDistributionPointUrlFound -2147168457

受保护的内容已损坏。The protected content is corrupted.

NoLicense NoLicense NoLicense NoLicense -2147168452

所需许可证不可用。A required license is not available.

NoMoreData NoMoreData NoMoreData NoMoreData -2147168461

指定索引处不存在许可证或证书。No license or certificate exists at the specified index.

NotAChain NotAChain NotAChain NotAChain -2147168418

权限管理的内容已损坏。Rights managed content is corrupted.

NotSet NotSet NotSet NotSet -2147168434

请求删除的项目不存在。The item requested to delete does not exist.

OutdatedModule OutdatedModule OutdatedModule OutdatedModule -2147168435

未正确配置权限管理服务。Rights management services are not properly configured.

OutOfQuota OutOfQuota OutOfQuota OutOfQuota -2147168446

已达到最终用户许可证 (EUL) 的许可证服务器的最大配额。The license server's maximum quota of End Use Licenses (EULs) has been reached.

OwnerLicenseNotFound OwnerLicenseNotFound OwnerLicenseNotFound OwnerLicenseNotFound -2147168395

该文档不包含所有者许可证。The document does not contain an Owner License.

QueryReportsNoResults QueryReportsNoResults QueryReportsNoResults QueryReportsNoResults -2147168490

请求的属性不存在实例。No instances of the requested attribute exist.

RecordNotFound RecordNotFound RecordNotFound RecordNotFound -2147168454

未找到指定许可证。The specified license was not found.

RequestDenied RequestDenied RequestDenied RequestDenied -2147168417

权限管理服务器不允许当前用户的临时证书。The Rights Management server does not allow temporary certification of the current user.

RevocationInfoNotSet RevocationInfoNotSet RevocationInfoNotSet RevocationInfoNotSet -2147168432

尚未设置证书或许可证吊销信息。Certificate or license revocation information has not been set.

RightNotGranted RightNotGranted RightNotGranted RightNotGranted -2147168507

当前用户没有权限访问受保护的内容。The current user does not have rights to access the protected content.

RightNotSet RightNotSet RightNotSet RightNotSet -2147168430

使用权限管理发布内容时,未指定请求的权限。The requested right was not specified when the content was published with rights management.

ServerError ServerError ServerError ServerError -2147168444

未正确配置权限管理服务。Rights management services are not properly configured.

ServerNotFound ServerNotFound ServerNotFound ServerNotFound -2147168438

未正确配置权限管理服务。Rights management services are not properly configured.

ServiceGone ServiceGone ServiceGone ServiceGone -2147168420

未正确配置权限管理服务。Rights management services are not properly configured.

ServiceMoved ServiceMoved ServiceMoved ServiceMoved -2147168421

未正确配置权限管理服务。Rights management services are not properly configured.

ServiceNotFound ServiceNotFound ServiceNotFound ServiceNotFound -2147168440

未正确配置权限管理服务。Rights management services are not properly configured.

Success Success Success Success 0

已成功完成操作。Operation has competed successfully.

TooManyCertificates TooManyCertificates TooManyCertificates TooManyCertificates -2147168458

证书数量已超过允许的最大数量。The number of certificates has exceeded the maximum number allowed.

TooManyLoadedEnvironments TooManyLoadedEnvironments TooManyLoadedEnvironments TooManyLoadedEnvironments -2147168500

已创建太多 SecureEnvironment 实例。Too many SecureEnvironment instance have been created.

UnexpectedException UnexpectedException UnexpectedException UnexpectedException -2147168489

发生了未指定的错误。An unspecified error occurred. 在调试模式下运行应用程序时也会引发。Also thrown when an application runs in debug mode.

UseDefault UseDefault UseDefault UseDefault -2147168439

如果为计算机激活或权限帐户证书发出请求,接收 UseDefault 则表示该应用程序应将 null 传递到 ActServInfo 参数If a request is made for computer activation or a rights account certificate, receiving UseDefault indicates that the application should pass null into the ActServInfo parameter

ValidityTimeViolation ValidityTimeViolation ValidityTimeViolation ValidityTimeViolation -2147168436

受保护内容的定义时间段已到期;不再允许访问。The defined time period for the protected content has expired; access is no longer permitted.

示例

下面的示例演示使用FailureCodeMessage属性创建用户的错误消息。The following example shows use of the FailureCode and Message properties to create an error message for the user.

WriteStatus("   Building secure environment.");
try
{
    string applicationManifest = "<manifest></manifest>";
    if (File.Exists("rpc.xml"))
    {
        StreamReader manifestReader = File.OpenText("rpc.xml");
        applicationManifest = manifestReader.ReadToEnd();
    }

    if (_secureEnv == null)
    {
        if (SecureEnvironment.IsUserActivated(new ContentUser(
                    _currentUserId, AuthenticationType.Windows)))
        {
            _secureEnv = SecureEnvironment.Create(
                applicationManifest, new ContentUser(
                    _currentUserId, AuthenticationType.Windows));
        }
        else
        {
            _secureEnv = SecureEnvironment.Create(
                applicationManifest,
                AuthenticationType.Windows,
                UserActivationMode.Permanent);
        }
    }
}
catch (RightsManagementException ex)
{
    MessageBox.Show("ERROR: Failed to build secure environment.\n" +
        "Exception: " + ex.Message + "\n\n" +
        ex.FailureCode.ToString() + "\n\n" + ex.StackTrace,
        "Rights Management Exception",
        MessageBoxButton.OK, MessageBoxImage.Error);
    return false;
}
WriteStatus("   Building secure environment.")
Try
	Dim applicationManifest As String = "<manifest></manifest>"
	If File.Exists("rpc.xml") Then
		Dim manifestReader As StreamReader = File.OpenText("rpc.xml")
		applicationManifest = manifestReader.ReadToEnd()
	End If

	If _secureEnv Is Nothing Then
		If SecureEnvironment.IsUserActivated(New ContentUser(_currentUserId, AuthenticationType.Windows)) Then
			_secureEnv = SecureEnvironment.Create(applicationManifest, New ContentUser(_currentUserId, AuthenticationType.Windows))
		Else
			_secureEnv = SecureEnvironment.Create(applicationManifest, AuthenticationType.Windows, UserActivationMode.Permanent)
		End If
	End If
Catch ex As RightsManagementException
	MessageBox.Show("ERROR: Failed to build secure environment." & vbLf & "Exception: " & ex.Message & vbLf & vbLf & ex.FailureCode.ToString() & vbLf & vbLf & ex.StackTrace, "Rights Management Exception", MessageBoxButton.OK, MessageBoxImage.Error)
	Return False
End Try

适用于

另请参阅