Anitha
Joined: 17 Aug 2006
Posts: 3
|
Posted:
Tue Aug 22, 2006 6:59 am Post subject:
Unable to generate License |
|
|
Hi
I am newbie for this technology.I have started using the WMRM sdk for
packing and generating license for media content.I tried the silent
mode of delivering license.I am using ASP.NET and C#.net 2.0
When i generate the license
strLicense = LicenseObj.GetLicenseToDeliver();
Response.Write(strLicense);
The License string displayed is a sequense of characters it is not a
formated text with the appropriate tags as it dispalys the rights
string or header string.
I am using the following code
LicenseObj.KeyID = keyID;
LicenseObj.SetKey("MSDRM", key);
LicenseObj.Priority = 10;
LicenseObj.Rights = strRights;
LicenseObj.ClientInfo = ChallengeObj.ClientInfo;
LicenseObj.BindToPubKey = PublicKey;
LicenseObj.IndividualizedVersion =
HeaderObj.IndividualizedVersion;
LicenseObj.set_Attribute("Author", "K");
LicenseObj.set_Attribute("ContentDistributor", "W");
LicenseObj.set_Attribute("ContentType", "W");
LicenseObj.set_Attribute("Title", "Ka");
strLicense = LicenseObj.GetLicenseToDeliver();
Response.Write(strLicense);
ResponseObj.AddLicense("2.0.0.0", strLicense);
LicenseResponse = ResponseObj.GetLicenseResponse();
Is there any thing wrong in the following code
Can you please help regarding this
You can mail me at anitha.reddykora@gmail.com
_________________ Regards,
Sweety |
|