Closed hhuseyinpay closed 4 years ago
What NuGet packages you have installed in the project?
@hhuseyinpay My guess is it is related to the host matching template here:
.WithHostStrategy("*.__tenant__.?)
What is the url for the request throwing the error? Also I don't see it in your screenshot, but do you still have the default connection string value in the json for the configuration store?
"Finbuckle:MultiTenant:Stores:ConfigurationStore": {
"Defaults": {
"ConnectionString": "Data Source=Data/SharedIdentity.db"
},
"Tenants": [
{
"Id": "finbuckle",
"Identifier": "finbuckle",
"Name": "Finbuckle"
},
{
"Id": "megacorp",
"Identifier": "megacorp",
"Name": "MegaCorp"
},
{
"Id": "initech",
"Identifier": "initech",
"Name": "Initech LLC",
"ConnectionString": "Data Source=Data/InitechIdentity.db"
}
]
}
I had the same strange exception. Install NuGets: Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.Sqlite and try again. After it this exception can disappear.
@Oleg26Dev I tried but it did not work for me:
@AndrewTriesToCode I'm getting the error at https://localhost:5001/Identity/Account/Register and .../Login Yes, I screenshotted just my edits. So other parts are the same with IdentityDataIsolation example.
I find the problem. When using "*.tenant.?" strategy URL should end with .com etc. So I added localhost.com to the hosts file and it worked.
Hi, I'm trying to run the IdentityDataIsolation example with the host strategy. I made the following changes:
It throws the following error: