AuthorizeASRFromFile() fails with ErrorCode -2147467259

Discussion created by gmontgomery on Feb 14, 2013
Latest reply on May 7, 2015 by nagavijay
I am trying to authorize using an ESLF file from ESRI in code. The method calls are the same as used in 10.0 to authorize against an ASR file.

When I call:
pAuth.AuthorizeASRFromFile(asrLocation, password)

I get "Error HRESULT E_FAIL has been returned from a call to a COM component."
The error code is  -2147467259

I have searched ESRI and Google but have not been able to find this error code.

The ESLF file is in the app folder next to the former 10.0 ASR file. The password is the same as the old ASR file according to ESRI.

I used Process Monitor to check if there was a security issue with the service accessing the file. The file never pops up in PM. And just to check that there was not an issue with my PM filter I clicked on the file in explorer and PM immediately registers the file access.

Any ideas? This should not be that difficult.