c# - The specified cryptographic algorithm is not supported on this platform in Glacier Upload -


We are facing the problem of uploading data to the glacier on the Windows XP machine "Error message given below" specified cryptographic algorithm Not supported on this platform. "

An error occurs (for the .net low level glacier API)

  Client UploadMultipartPart (uploadMPUrequest);   

and the code below is also used when using a high level API.

  string archiveId = manager.upload (vaultName, "name", archiveToUpload) .ArchiveId ;   

On reading some links, we found that Windows XP does not support cryptography but we have many customers running XP machine, there is no solution or any hot fix for it.

I came to the hot fix while searching for error but it works for the Windows Server machine and there is no luck for Windows XP

Assume that your crypto algorithm is SHA256.

For code if you have access, you can try to use SHA256 Management instead of SHA256CryptoServiceProvider.

The algorithm will be run by the framework instead of trying to run through the platform.

If you need a display, you can try the Platform algorithm, then the framework has been applied (solution):

  SHA256 hash; Try {hash = new SHA256Cng (); } Hold (PlatformNotSupportedException) {hash = SHA256.Create (); }   

Another solution has been to say that the registry has to rename the cryptographic service.

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Cryptography \ Default \ Provider , find a subkey named "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" and is called "Microsoft Enhanced RSA and AES Cryptographic Provider ".

System XP SP3

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -