I can't get the following to work. I hope someone can share some inside ;)
What steps do I need to take to deloy the BlazorTemplate with authentication that comes with VisualStudio community 2019 to run on a Webserver.
My App works as long as I run it on my local PC. But when I deploy it to a Webhosting Server. It gives me an error (domainName.com/Identity/Account/Login Server Status 500; I dont know what I should make of this. I didnt create those pages/Directories).
I create the new Blazor Project with settings Authentication on -> individual Users & store Data In-App.
Everthing works fine on my local PC. I can see the DB in my Visual Studio etc. I can create users set roles log in etc.
But how do I get this workin on a Server.
I pulished my App (in VS right click on Blazor project name and select publish)
I then upload those files on to my HostServer without doing anything else.
I dont setup anything with the SQL DB I only "upload" the published Project.
If I try to use the register/ Login Options I get and Error from the WebServer and nothing happens I cant register login .
What do I have to do inorder to get the authentication to work on my Webserver. Do I need to create a SQL DB on my WebServer and then connect my Blazor code to that DB (in appsettings.json).
On my Webhost I have 25 free unsued MySql instances (the db in VS is MSSql).
I use a Domain on : interserver.net Asp.net Server config via Plesk
Please point me in the right direction I am pretty lost on this one
In general yes, you would need a db on your server. That means db changes will need to be done twice: local and live.
As an intermediary step you can put your db up on the the live server, and then see if you can connect to it from your mysql application from your local machine.
The error message could be related to your app not finding the database.
What do you think of that Plesk user interface that interserver uses??
Click on "Mark as Answer" if my answers help you along.
None
0 Points
2 Posts
How to deploy the blazorTemplate with authentication On to a real WebServer? (options in VS at cr...
May 28, 2020 09:06 PM|nogood|LINK
Hi,
I can't get the following to work. I hope someone can share some inside ;)
What steps do I need to take to deloy the BlazorTemplate with authentication that comes with VisualStudio community 2019 to run on a Webserver.
My App works as long as I run it on my local PC. But when I deploy it to a Webhosting Server. It gives me an error (domainName.com/Identity/Account/Login Server Status 500; I dont know what I should make of this. I didnt create those pages/Directories).
I create the new Blazor Project with settings Authentication on -> individual Users & store Data In-App.
Everthing works fine on my local PC. I can see the DB in my Visual Studio etc. I can create users set roles log in etc.
But how do I get this workin on a Server.
I pulished my App (in VS right click on Blazor project name and select publish)
I then upload those files on to my HostServer without doing anything else.
I dont setup anything with the SQL DB I only "upload" the published Project.
If I try to use the register/ Login Options I get and Error from the WebServer and nothing happens I cant register login .
What do I have to do inorder to get the authentication to work on my Webserver. Do I need to create a SQL DB on my WebServer and then connect my Blazor code to that DB (in appsettings.json).
On my Webhost I have 25 free unsued MySql instances (the db in VS is MSSql).
I use a Domain on : interserver.net Asp.net Server config via Plesk
Please point me in the right direction I am pretty lost on this one
Thanks for sharing and helping
Henning
Contributor
2613 Points
2718 Posts
Re: How to deploy the blazorTemplate with authentication On to a real WebServer? (options in VS a...
May 28, 2020 10:46 PM|wavemaster|LINK
Is your connection string pointing to the db on the local machine still?
None
0 Points
2 Posts
Re: How to deploy the blazorTemplate with authentication On to a real WebServer? (options in VS a...
May 29, 2020 01:01 PM|nogood|LINK
@wavemster thx for helping!!!
I tried a stupid lot of Connection Strings (by this time). I ask the Hoster to tell the Connection string etc. Iam still to of a noob to get it going.
Support told me to:
Contributor
2613 Points
2718 Posts
Re: How to deploy the blazorTemplate with authentication On to a real WebServer? (options in VS a...
May 29, 2020 01:33 PM|wavemaster|LINK
If you are using a json file for data storage then you don't need a db connection string.
Is your hosting service based on Windows?
Do a search for Blazor hosting HTTP 500.
Contributor
2613 Points
2718 Posts
Re: How to deploy the blazorTemplate with authentication On to a real WebServer? (options in VS a...
May 29, 2020 01:41 PM|wavemaster|LINK
In general yes, you would need a db on your server. That means db changes will need to be done twice: local and live.
As an intermediary step you can put your db up on the the live server, and then see if you can connect to it from your mysql application from your local machine.
The error message could be related to your app not finding the database.
What do you think of that Plesk user interface that interserver uses??