Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Importing additional namespaces in VB.NET script
sp_NewPost Add Reply sp_NewTopic Add Topic
April 29, 2016
8:55 am
Henk Helmantel
Admin
Forum Posts: 1487
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

April 28, 2016
5:11 pm
Tailor
Guest
Guests

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

April 19, 2011
11:31 am
Henk Helmantel
Guest
Guests

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

April 19, 2011
10:36 am
Newman
Guest
Guests

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.

Forum Timezone: Europe/Amsterdam

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 Helmantel

Administrators: Henk Helmantel: 1487