2017-11-06 6 views
0

ASP.NET Core (v2) Web API 프로젝트에서 BitcoinLib을 사용하고 있습니다. BitcoinLib 받기 = "CoinParameters에 정의 된 하나 이상의 필수 매개 변수가 구성 파일에서 발견되지 않았습니다!"

 var bitcoinService = new BitcoinLib.Services.Coins.Bitcoin 
       .BitcoinService(appSettings.BitcoinSettings.ServerUrl, 
           appSettings.BitcoinSettings.Username, 
           appSettings.BitcoinSettings.Password, 
           appSettings.BitcoinSettings.WalletPassword); 

내가 오류 얻을 : 그러나 때마다 나는 서비스의 인스턴스를하려고 내가 전달되는 값이 널 (null)와 정확하지 않은 것을 확인

One or more required parameters, as defined in CoinParameters, were not found in the configuration file!

을, 난 추가 한 내 web.config로 설정 :

<configuration> 
    <appSettings> 
    <add key="RpcRequestTimeoutInSeconds" value="60" /> 

    <add key="Bitcoin_DaemonUrl" value="http://localhost:18332" /> 
    <add key="Bitcoin_DaemonUrl_Testnet" value="http://localhost:18332" /> 
    <add key="Bitcoin_WalletPassword" value="X" /> 
    <add key="Bitcoin_RpcUsername" value="X" /> 
    <add key="Bitcoin_RpcPassword" value="X" /> 
    </appSettings> 
... 

아무것도 작동하지 않습니다 ... 나는이 일을 포크하고 IgnoreConfigFiles 체크를 제거해야하거나 내가 여기서 뭔가 잘못하고있는 중이 야합니까?

+0

최신 버전을 사용해 볼 수 있습니까? 현재 몇 시간 전에 방금 출시 된 v1.3.4입니다. –

+0

실제로 과부하 문제를 해결했지만 문제는 지금은 '.NET Core compatible'이 아니기 때문에 ... 아직 포크를 사용해야합니다 ... –

+0

우리는 .NET 표준 버전을 출시 할 예정입니다. 달. 계속 지켜봐. –

답변

0

실제 예외는 잘못된 방향입니다. 실제 문제는 rpcRequestTimeoutInSeconds입니다. 그것은 NuGet 패키지처럼 보이는

BitcoinService(string daemonUrl, string rpcUsername, string rpcPassword, string walletPassword, short rpcRequestTimeoutInSeconds) 

가 누락되었습니다 라이브러리는이 같은 과부하를 가질 필요가 있겠습니까? 당신은 여기에 패키지를 얻을 수 있습니다 https://github.com/SaganMarketing/BitcoinLib

: https://www.myget.org/feed/saganmarketing/package/nuget/BitcoinLib

https://github.com/GeorgeKimionis/BitcoinLib/issues/42

내가 여기 .NET Core 호환을 만듭니다 않은 : 나는

여기

더 많은 정보는 ... 코드에서 볼 수 있듯이