Closed pkavan closed 5 years ago
Hi @pkavan, this is happening probably because the tenant couldn't be found--maybe related to the IIS problem and the host strategy. The fallback strategy should be creating a TenantInfo though. Just as a test can you try changing the WithHostStrategy()
to WithStaticStrategy("acmebank")
and see if it works?
I think the problem is deeper. I pulled down the master branch, built that, and imported the assemblies to my project. I removed the reference to the fallback and tried both the host and static strategies. I went directly to the acmebank.localhost reference. For all of those I get the same exception.
If I pull those assemblies and go back and grab GitHub 3.0.1 (?) release, it works
I have tried this both through IIS Express and directly through the dotnet debug method
It's very possible I broke something. Is your project on GitHub where I can see it?
Yeah... my database example is broken. I hope to find a quick fix.
Thanks for finding this bug! I just made a quick fix and added unit tests to catch it if I make the mistake again. The PR automatically close out this issue. The master branch should be working now. I plan to release 3.1 later this week.
Thanks!
I am trying to employ the fallback tenant identifier
I set up ConfigureServices() with:
...where acmebank is one of my listed tenants. I am getting the following when I launch in IIS Express:
Any clues on what to look at? Did I miss part of the implementation?