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.