Open thomas-tran opened 3 years ago
I tried put the Indy-SDK DLL files into the BIN folder and get a new error:
An unhandled exception occurred while processing the request. FileNotFoundException: Could not find file 'E:\BlockChainTest\bin\Debug\netcoreapp3.1\Hyperledger.Aries.AspNetCore.xml'.
Steps :
Also this steps are documented here : https://github.com/hyperledger/indy-sdk/#windows
i could not resolve this error after updating env paths pointing to libindy.dll in lib folder
is there a way to check whether env path for libindy.dll is valid in a different way, similar to how indy-cli operates?
i am able to use indy-cli globally as a it finds the env path.
is there a nuget package that one can contain the necessary files without pointing to system path?
I dunno if this problem has been resolved for others or not, but adding them to PATH
environment variable didnt help me .
This is what i had to do to get the webapp running:
appsettings.json
..csproj
file<ItemGroup>
<EmbeddedResource Include="indy.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="indy.dll.lib">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="libeay32md.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="libsodium.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="libzmq.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="ssleay32md.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
This will copy the libs into the bin
folder when the solution is built and therefore make them available for the application to start.
I do not know if this a good/bad way. But none of the other solutions really worked for me.
Cheers
Describe the bug Open visual studio with Webagent.sln. Compiled successfully, run the agent under debug mode DefaultProvisioningHostService.cs await _provisioningService.ProvisionAgentAsync(); throw exeception System.DllNotFoundException: 'Unable to load DLL 'indy' or one of its dependencies: A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.![image](https://user-images.githubusercontent.com/5725085/103593044-d71a5980-4f48-11eb-992d-77cc1cdb1d31.png)
Desktop (please complete the following information):