hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

WebAgent Demo Sample does not work under Windows #189

Open br-iosb opened 3 years ago

br-iosb commented 3 years ago

Describe the bug If you provide LibIndy for Windows and start running the sample, the agent can not interact with the Ledger, e.g. create a Credential Definition. You get a 307 Error Code. The Docker Image works, using the same genesis File. (I was testing with http://greenlight.bcovrin.vonx.io/genesis but also a local "von network" Docker Image). Also using a Ubuntu VM works.

Hyperledger.Indy.IndyException: An unmapped error with the code '307' was returned by the SDK.
   at Hyperledger.Aries.Ledger.DefaultPoolService.GetPoolAsync(String poolName) in C:\Users\roessba-Admin\git\br-iosb\aries-framework-dotnet\src\Hyperledger.Aries\Ledger\DefaultPoolService.cs:line 49
   at Hyperledger.Aries.Ledger.DefaultPoolService.GetPoolAsync(String poolName, Int32 protocolVersion) in C:\Users\roessba-Admin\git\br-iosb\aries-framework-dotnet\src\Hyperledger.Aries\Ledger\DefaultPoolService.cs:line 38

To Reproduce Steps to reproduce the behavior:

  1. Add Windows LibIndy dll Files (https://repo.sovrin.org/windows/libindy/stable/1.14.2/) to the demo project so that it gets copied to the output folder.
  2. Make sure that the Genesis File is valid
  3. Debug WebAgent with the provided launchSettings.json, profile "WebAgent"
  4. Open Browser, navigate to "Issue Credential" -> "Regsiter Degree Schema"

Expected behavior I'd like to have clear instructions how to make the sample run on a Windows OS. The error code should display useful information.

Desktop (please complete the following information):

Additional context I want to debug the agent code, therefore it is not applicable for me to run everything in docker containers.