Support forum
Hello Tailor,
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
Regards, Henk
5:11 pm
Hi,
I am trying out Diafaan for a project using the Full Edition v(Version 3.2.0.1) 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.
Thanks
11:31 am
Hi,
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.
Best regards,
Henk
10:36 am
Hi, everyone!
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.
Thanks.
Most Users Ever Online: 529
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 671
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1140
Posts: 3897
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1487