<p>I've configured the bitcoin.conf and web.config file in visual studio to match, and I keep getting the above exception, also getting this when I run it...</p>

<p>'No connection could be made because the target machine actively refused it'</p>

<p>Only thing I currently have commented out which may be the culprit is;</p>

<p>'add key="Bitcoin_WalletPassword" value=""'</p>

<p>as I'm not sure where to set the corresponding value in bitcoin-qt.</p>

<p>Thanks</p>

CC BY-SA 3.0
2015-10-11T19:08:02.017Z
Do you have `server=1` in your bitcoin.conf? bitcoin-qt doesn't accept RPC connections normally.
Nick ODell
CC BY-SA 3.0
2015-10-11T19:28:57.343Z
@NickODell I do have server=1 and also rpcport=8332 in the bitcoin.config file
BitcoinLiam
CC BY-SA 3.0
2015-10-11T20:05:34.837Z
Does it actually have that port open? What does netstat say?
Nick ODell
CC BY-SA 3.0
2015-10-11T20:26:29.473Z
@NickODell netstat wasn't showing 8332 open, showing 8333 open so changed it to that in both files and still no luck! I've had it all working using another RPC wrapper but I want to move to bitcoinlib as it regularly updated.
BitcoinLiam
CC BY-SA 3.0
2015-10-11T21:30:58.200Z
@NickODell Solved... in the homecontroller.cs ' when instantiating the BitcoinService the code I was using was setting 'testnet' to true, simply changed this to false (not researched the implications of this yet) and it's now working.
BitcoinLiam
<c#><bitcoin-qt-setup>
bitcoinlib 'There was a problem sending the request to the wallet'
BitcoinLiam
# bitcoinlib 'There was a problem sending the request to the wallet'

(Asked by: username_0 on 2015-10-11)

I've configured the bitcoin.conf and web.config file in visual studio to match, and I keep getting the above exception, also getting this when I run it...

'No connection could be made because the target machine actively refused it'

Only thing I currently have commented out which may be the culprit is;

'add key="Bitcoin\_WalletPassword" value=""'

as I'm not sure where to set the corresponding value in bitcoin-qt.

Thanks

**Tags:** c#, bitcoin-qt-setup

> **Comments:**
> **username_1**: Do you have `server=1` in your bitcoin.conf? bitcoin-qt doesn't accept RPC connections normally.  
> **username_0**: @NickODell I do have server=1 and also rpcport=8332 in the bitcoin.config file  
> **username_1**: Does it actually have that port open? What does netstat say?  
> **username_0**: @NickODell netstat wasn't showing 8332 open, showing 8333 open so changed it to that in both files and still no luck! I've had it all working using another RPC wrapper but I want to move to bitcoinlib as it regularly updated.  
> **username_0**: @NickODell Solved... in the homecontroller.cs ' when instantiating the BitcoinService the code I was using was setting 'testnet' to true, simply changed this to false (not researched the implications of this yet) and it's now working.  

---

## 0 answers

