blazor-wasm-boilerplate icon indicating copy to clipboard operation
blazor-wasm-boilerplate copied to clipboard

Cannot open database "preReleaseTest"

Open AllanTee opened this issue 2 years ago • 3 comments

I used my test MySQL database on another computer. Migration seems to be successful, many new tables occurred in the database.

On the first run: ERR] Execution BackgroundServerProcess is still in the Failed state for 00:09:25.6352334 due to an exception, will be retried no more than in 00:00:15 Cannot open database "preReleaseTest" requested by the login. The login failed.

AllanTee avatar Mar 11 '22 16:03 AllanTee

Seems to be a problem with hangfire... have you also changed the connectionstring and provider in hangfire.config?

fretje avatar Mar 13 '22 12:03 fretje

Like fretje pointed out, check your hangfire.json under Host>Configurations>hangfire.json. Make sure you edit the connectionstring under storage.

https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/src/Host/Configurations/hangfire.json

MikaelHild avatar Mar 16 '22 10:03 MikaelHild

Hi,

FSH.Starter and FSH.Blazor apps work as expected until the first login with root credentials. I can even register a new user and I see new user data in the database. But when I login, weird question starts "Wrong tenant name" etc... I cannot log in. Looks like I don't understand exactly how to use your apps.

However, I'm not interested in the WebAssembly app. Can FSH.Starter be used as a template for the Blazor Server app? I tried it. When I added Razor components to the template, then there were error messages about missing database migrations, etc ... Adding Migrations results with errors...

AllanTee avatar Mar 17 '22 17:03 AllanTee