In the latest versions of Diafaan SMS Server the assembly reference DLL's can be added in the comment section in the script itself. The ReferenceList property is now obsolete and was removed from the advanced settings of the Scripting Gateway and Connector.
To add the System.Data library reference to a C# script, you can add the following line after the line
'// AddReference System.dll'
at the top of the script:
// AddReference System.Data.dll
To add the library reference to a Visual Basic.NET script, add the line:
' AddReference System.Data.dll
I am trying out Diafaan for a project using the Full Edition v(Version 188.8.131.52) with C# scripting. My project needs to make connections to SQL Server to retrieve information for sending. However, adding the "System.Data.SqlClient" assembly results in compilation error because the assembly can not be found.
Though the above article suggest referencing the assembly in the "Advanced properties of the scripting connector", the property in question is not available on my installation. The only options under "Advanced Properties" are "Log Communication to File" and "Send Priority"..
Please advice on how best to resolve this.
If you want to use System.Data.Odbc in your script you must also add a reference to the System.Data library. In the Advanced Properties of the Scripting Connector you should add the line System.Data.dll to the RefenceList property.
This also applies to other .NET libraries you would like to use in your script. Libraries that are not listed in the RefenceList property are not loaded into the script.
My application is designed to work as follows:
When a new message is received, my script has to programmatically query some database tables in order to generate an outgoing message. To do this, I tried to import the System.Data.Odbc or Microsoft.Data.Odbc namespace into my script, but I keep getting an error message.
Please help me with this.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 390
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 610