I'm currently experimentig with FoundationDB in a .Net WebApi 2 project. The WebApi controller performs a simple getrange against the foundationdb cluster, and everything works fine ... if I run the project just once.
The second time I run it, I get the dreaded api_version_already_set
error, and the only way to have everything up and running again is to restart IIS. I've found this similar question, and the only "solution" proposed in the answer is to run a process per App Domain, that isn't really ideal.
I have also tried this hack used in the .Net library, but all it does is switch the api_version_already_set
error to network_already_setup
or broken_promise
.
Has anybody else found a better solution?
PS: To temporarly solve this, I'm running the WebApi as self host, and this seems to solve the problem, but makes the use of FoundationDB in conjunction with WebApi annoying outside of a test environment.