今天在给别人做DEMO的时候,发现用原来开发的WDRM打包器对asf文件进行打包时,出现了一个错误:

  System.Runtime.InteropServices.COMException (0xC00D2840): Exception from HRESULT: 0xC00D2840.

  at WMRMOBJSLib.WMRMProtectClass.ProtectFile(String bstrFileName)

  MSDN上对于这个Error Code的解释是:
Error code Hexadecimal value Description
NS_E_DRM_LICENSE_SERVER_INFO_MISSING 0xC00D2840 Could not read the necessary information from the system registry.

  不过打包器的代码我一直没有改过,以前一直都好好的啊~~把DRM卸掉重装也没用。。"注册表缺少信息",突然想起来DRM 9.0要求到微软网站进行认证才行的,而我的DRM之前曾经卸载过^^ 赶紧到微软的网站进行认证,一切OK:)
  只要到下面网站,然后Enroll to get a new certificate,系统就会往你邮箱发送一个认证码,再回到这个网站,选择Complete the enrollment with your e-mail confirmation,即可用你的邮箱地址和认证码即可取得DRM认证^^ 
  http://licenseserver.windowsmedia.com/

  另外,WDRM的Error Code可以到MSDN去查询,比SDK自带帮助里的要详细很多:)
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/errorcodes.asp

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-05-18
  • 2021-09-05
  • 2021-04-07
  • 2022-01-10
  • 2021-05-15
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2022-03-04
  • 2022-12-23
  • 2021-08-16
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案