MySqlConnector icon indicating copy to clipboard operation
MySqlConnector copied to clipboard

Unable to deploy mySqlConnector with my application

Open paulisidore opened this issue 10 months ago • 5 comments

HI, for 2 weeks I have been trying to move from MySql.Data to MySqlConnector for .NET, the program works correctly on the development machine (Visual Studio 2022) but once deployed it does not work and I receive this exception:

Unable to load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The specified file can not be found.

Development OS: Windows 10 Pro 22H2 Deployment OS: Windows 10 Pro 22H2 and 1607 MariaDB Server 10.5.13

The System.Runtime.CompilerServices.Unsafe file is present in the application folder on all machines. Also, the same application using mysql.data works correctly on all computers.

I also deleted MySql.Data.dll from the application folder but I still got the same result.

I also changed the version of my MariaDB Server to version 10.11 but no results while version 10.5.13 works without problems on my development computer.

Please, could you help me?

paulisidore avatar May 04 '24 05:05 paulisidore