- Joined
- Apr 8, 2018
- Messages
- 14
- Reaction score
- 0
Hello everyone
I am creating an external script to let my call flow designer application connect to a MySql database.
I had to add some dependencies of which MySql.Data.dll is one of them. I added this dll and it's dependencies to the /usr/lib/3cxpbx folder (my 3CX server is running on a Debian machine). But every time my script is running, I see an error in my QueueManager logs telling me that this DLL could not be found, eventhough I added him to that folder. I even tried to restart the server without any result.
This is the error I get:
Hopefully one of you can help me with this.
Kind regards
Brecht
I am creating an external script to let my call flow designer application connect to a MySql database.
I had to add some dependencies of which MySql.Data.dll is one of them. I added this dll and it's dependencies to the /usr/lib/3cxpbx folder (my 3CX server is running on a Debian machine). But every time my script is running, I see an error in my QueueManager logs telling me that this DLL could not be found, eventhough I added him to that folder. I even tried to restart the server without any result.
This is the error I get:
Code:
18/04/27 09:12:15.861|100030| Err|10|0018|: PlugIn[MySQLConnectionTest - Callflow - MainFlow - CallID WIZJRYQFAUQE] ERROR: Error executing last component: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.10.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'. The system cannot find the file specified.
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at MySQLConnectionTest.ExternalCodeExecutionComponent.executeStart(QMExtendAPI iface, String id)
at MySQLConnectionTest.ExternalCodeExecutionComponent.Start(QMExtendAPI iface, CallQueue callQueue, QueueCall queueCall, ActiveConnection activeConnection, TimerManager timerManager, Dictionary`2 variableMap, TempWavFileManager tempWavFileManager, PromptQueue promptQueue)
at MySQLConnectionTest.SequenceContainerComponent.Start(QMExtendAPI iface, CallQueue callQueue, QueueCall queueCall, ActiveConnection activeConnection, TimerManager timerManager, Dictionary`2 variableMap, TempWavFileManager tempWavFileManager, PromptQueue promptQueue)
at MySQLConnectionTest.ConditionalComponent.Start(QMExtendAPI iface, CallQueue callQueue, QueueCall queueCall, ActiveConnection activeConnection, TimerManager timerManager, Dictionary`2 variableMap, TempWavFileManager tempWavFileManager, PromptQueue promptQueue)
at MySQLConnectionTest.Callflow.ProcessStart()
Hopefully one of you can help me with this.
Kind regards
Brecht