ArcGIS 10.1 Engine Authorize License

Discussion created by Skycarp on Aug 23, 2012

We have a simple windows forms application which Authorizes some engine software componets in the ArcGis Administrator.  We are upgrading this software from 10.0 to 10.1.

AuthorizeASRFromFile(fileName,password) works fine
AuthorizeASR(strASR,password) fails with an Error code of -100 (which isn't listed in the doc I have)

Can you tell me the format of the strASR value? I'm not sure if its the entire xml string including the header or just the <SecureLicense> or just the <LicenseData> or maybe just the value of one of those tags?

I've tried a most of the combinations above but can not get it to work.  Again it works by file so I know the code works and the license works.