Skip to content

Commit

Permalink
Merge pull request #113 from TransbankDevelopers/chore/troubleshootin…
Browse files Browse the repository at this point in the history
…g-section-in-readme

Create troubleshoorint section in README
  • Loading branch information
Ricardo Cisterna authored Mar 25, 2020
2 parents 5aa7b26 + 5666cd9 commit 98b3cfe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@ La documentación relevante para usar este SDK es:
- Primeros pasos con [Webpay](https://www.transbankdevelopers.cl/documentacion/webpay) y [Onepay](https://www.transbankdevelopers.cl/documentacion/onepay).
- Referencia detallada sobre [Webpay](https://www.transbankdevelopers.cl/referencia/webpay) y [Onepay](https://www.transbankdevelopers.cl/referencia/onepay).

## Solución de problemas

### CryptographicException: Invalid algorithm specified

Si al intentar ejecutar el código en el que integras, se lanza una excepción similar a la siguiente:
```
System.Security.Cryptography.CryptographicException
HResult=0x80090008
Message=Invalid algorithm specified.
Source=<Cannot evaluate the exception source>
StackTrace:<Cannot evaluate the exception stack trace>
```
puedes solucionarlo agregando a tu código, antes de llamar a initTransaction, las siguientes líneas:

```csharp
AppContext.SetSwitch("Switch.System.Security.Cryptography.Xml.UseInsecureHashAlgorithms", true);
AppContext.SetSwitch("Switch.System.Security.Cryptography.Pkcs.UseInsecureHashAlgorithms", true);
```

## Información para contribuir y desarrollar este SDK

### Windows
Expand Down

0 comments on commit 98b3cfe

Please sign in to comment.