locked
Connecting Blazor Server to MySQL RRS feed

  • Question

  • User952791441 posted

    I have a very simple, single page Blazor Server application that is hosted on a PC with MySQL server running on it. The application will simply grab a record from the database and display the results on the page.

    Everything is setup on the PC to where the Blazor Server application displays properly, and I can connect to the MySQL database using my WPF applications, but for some reason I cannot get the Blazor Server application to connect. I've tried using "localhost" and the IP address of the PC but nothing seems to be working.

    The only error I'm really seeing is: Exception thrown: 'System.TypeInitializationException' in MySql.Data.dll

    Is there anything special that needs to happen to make the Blazor Server application connect to MySQL?

    Thanks!

    Thursday, September 3, 2020 1:16 PM

Answers

All replies