Punar Dutt Rajput

Punar Dutt Rajput

  • 299
  • 6.2k
  • 89.7k

Issue with Azure Function and MySQL Connection

Sep 10 2024 5:06 AM

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?


Answers (1)