Support forum

Advanced Search

— Forum Scope —

— Match —

— Forum Options —

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

missing assembly reference.
sp_NewPost Add Reply sp_NewTopic Add Topic
January 11, 2016
2:52 am


January 10, 2016
8:31 pm
Henk Helmantel
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Andre,

It is not possible to show a MessageBox with a Scripting Connector or Scripting Gateway in Diafaan SMS Server because the script runs as part of the Diafaan SMS Server service and Windows does not allow showing a MessageBox or other window from a service. For error messages or other alerts, you can post an event with the 'PostEventLog' script method that shows up in the event log of Diafaan SMS Server.

You can add assembly references to the script in the comment section at the top of the script. If you look at the script, you can find the line:
// AddReference System.dll
You can add references to other assembly DLL's after this line. For instance you can add:
// AddReference System.Windows.Forms.dll
to add the reference to the 'System.Windows.Forms' assembly.

If the assembly DLL is not in the search path of Windows, it can be specified with the full path name, e.g.:
// AddReference C:\temp\MyAssembly.dll

Regards, Henk

January 10, 2016
5:44 pm


is there anyway to use MessageBox in C# script?

I'm trying to add "using System.Windows.Form;" But i got an error "The type or namespace name "Windows" does not exist in the namespace "System".

Do you know how to overcome this problem?
is it even possible to import another native dll into the script?


Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 678

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1149

Posts: 3929

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1502