【发布时间】:2026-01-12 03:10:01
【问题描述】:
应用程序最初是在 VS 2008 中开发的。它使用 MySQL.data.dll 连接到 MySQL 数据库。应用程序在 Windows 中运行良好。
但生产环境是带有单声道的 Debian。
现在将整个解决方案复制到 Debian 盒子中。整个解决方案在 monodevelop 中正确打开。它不会在构建中引发任何错误。但是在运行时 - 它会引发以下错误 -
文件发送中............
Error: System.EntryPointNotFoundException: CreateSemaphore
at (wrapper managed-to-native) MySql.Data.Common.Semaphore:CreateSemaphore (MySql.Data.Common.SECURITY_ATTRIBUTES&,int,int,string)
at MySql.Data.Common.Semaphore..ctor (Int32 initialCount, Int32 maximumCount) [0x00000]
at (wrapper remoting-invoke-with-check) MySql.Data.Common.Semaphore:.ctor (int,int)
at MySql.Data.MySqlClient.MySqlPool..ctor (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000]
at MySql.Data.MySqlClient.MySqlPoolManager.GetPool (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000]
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]
【问题讨论】:
标签: mysql mono debian monodevelop