Today, when I made a demo for someone else, I found that an error occurred while packaging the ASF file with the originally developed wdrm package:
System. runtime. interopservices. comexception (0xc00d2840): exception from hresult: 0xc00d2840.
At wmrmobjslib. wmrmprotectclass. protectfile (string bstrfilename)
The error code on msdn is described as follows:
Error Code |
Hexadecimal value |
Description |
Ns_e_drm_license_server_info_missing |
0xc00d2840 |
Cocould not read the necessary information from the system registry. |
But the packageCodeI have never changed it. I have always done well before ~~ Removing and reinstalling DRM is useless .. "The Registry lacks information". I suddenly remembered that DRM 9.0 requires authentication on the Microsoft website, and my DRM was uninstalled before ^ hurry to the Microsoft website for authentication, everything is OK :)
Just go to the following website, and thenEnroll to get a new certificate, The system will send a verification code to your mailbox, then return to this website, selectComplete the enrollment with your e-mail confirmationYou can use your email address and verification code to obtain the DRM authentication ^
Http://licenseserver.windowsmedia.com/
In addition, the error code of wdrm can be queried by msdn, which is much more detailed than that in the help provided by the SDK :)
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/wmform95/htm/errorcodes. asp