danielgerlag / NBlockchain

.NET standard library for building blockchain enabled applications
MIT License
83 stars 20 forks source link

Unable to resolve service for type #16

Closed furesoft closed 5 years ago

furesoft commented 5 years ago

Unable to resolve service for type 'System.String' while attempting to activate 'NBlockchain.Services.NatTraversal.UpnpAutodetectPortForwarding'."

when trying to use UseTcpPeerNetwork();

danielgerlag commented 5 years ago

What does your IoC container setup look like?

furesoft commented 5 years ago

its the sample application using litedb as provider

danielgerlag commented 5 years ago

Seems to be an issue with the NatTraversal services... I've updated the sample like this

x.UseNoNatTraversal();

Which is now working