Blazor server side deployment http 500 error

i have a problem when i deploy my blazor app (self-contained or framework-dependent) to a private server. App works properly on visual studio debug mode, i can process crud operations even on remote server. However when i deploy the app, i get http 500 error and i cant find any additional information. None of the pages are opening.

I checked the _Host.cshtml and Startup.cs files. The app doesn't have complex pages or packages for now, only use asp net core identity with ef core.

Where should i look into first, what could you suggest?

https://i.sstatic.net/yN50q.png

Upvotes: 2

Views: 1199

Answers (1)

Finally i find the solution.

When i deploy the app on azure, it says there is a error about mysqlconnector, and i delete ServerVersion.AutoDetect (Pomelo package), set the version by hand in Startup.cs and it works. But i don't know why it works.

Upvotes: 1

Related Questions