I have created an Azure Function using C# and I'm trying to connect it to a MySQL database. However, when I attempt to establish the connection, I encounter the following error:
System.Private.CoreLib: Exception while executing function: Function1. MySql.Data: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
Has anyone faced a similar issue or know how to resolve this?