asp.net - pfx file not found for Xero api -


i'm developing app accesses xero api , have works fine on development machine.

when upload web server (arvixe) file not found error when trying load pfx file required authentication.

i have verified file path correct , enabled permissions on file.

could error masking else?

** update **

there no problem accessing file. changed code load pfx file byte array first works fine, use byte array parameter x509certificate2 constructor instead of filename.

this error occurs, looks has problem creating temporary file or accessing certificate store.

i think might problem on shared hosting. know workaround?

ok, randomly started working today. had tried code before, after many other things, it's possible needed recycle application pool:

  x509certificate2 cert = new x509certificate2();   cert.import(hostingenvironment.mappath("~/public_privatekey.pfx"), "password", x509keystorageflags.machinekeyset); 

the key part storage flag of machinekeyset.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -