1. NET Genium settings

  • NET Genium settings are available to all users with administrator privileges.
  • The icon for opening the NET Genium settings dialog is located in the toolbar in the navigation area in admin mode. The toolbar is displayed by clicking the gear icon or the NET Genium label located to the right of this icon.

1.1. Notification for administrator

  • The “Notification for administrator...” icon in the “NET Genium” toolbar opens, in a new window, a page with the text of the notification and with the comments of administrators. The page is accessible only to users with administrator privileges.
  • The text of the notification is saved with the “Save notification for administrator” button. A non-empty text is displayed to every user with administrator privileges after logging in with a user name and password in the login window or in the “Change password” dialog and after a forced password change. It is not displayed after logging in by other means (Microsoft sign-in, login ticket, Windows authentication). The notification is cancelled by saving an empty text.
  • The “Insert comment” button adds a comment to the “Comments (History)” table together with the login name of its author and the date. Every saved non-empty text of the notification is written into the same table as well.
  • The icons in the title of the “Comments (History)” table delete the whole history, or only the records older than 6 months.

1.2. Restart

  • The “Restart” item in the “NET Genium” toolbar restarts NET Genium after a confirmation question, without entering a password. When configuration files need to be applied to the “Web.config” or “bin\RunScript.exe.config” file, the “Finish update” item is offered instead. If the “DenyLogin.txt” configuration file exists, these items are not displayed.
  • A restart first adjusts the “Web.config” file according to the “DenyCookieless.txt”, “ExecutionTimeout.txt”, “Framework.txt”, “MaxRequestLength.txt”, “SessionTimeout.txt” and “SSL.txt” configuration files and the “bin\ngef.dll.config” file, and adds the assembly binding redirects from the “bin\ngef.dll.config” file to the “bin\RunScript.exe.config” file as well – a change of these files therefore takes effect even without an update of NET Genium. Only the settings that the files turn on or change from the default value are applied. Deleting a configuration file or returning to the default value does not restore the “Web.config” file to its original state. The same applies to a restart with the password on the “url-netgenium/restart” web page. Any other restart of the web application (recycling the application pool, replacing libraries in the “bin” directory) does not adjust the “Web.config” file.
  • The items are offered only in full installations of NET Genium – they are not displayed in NET Genium Online, nor when the “Demo.txt” configuration file exists.

2. List of tabs in the settings dialog NET Genium

  • General – Setting general properties of NET Genium
  • Emails – Email settings
  • Print templates – Setting up print templates
  • Permissions – Permission settings
  • Passwords – Password settings
  • Colors – Color settings
  • Other – Setting other properties

2.1. “General” tab

2.1.1. Name

  • The name NET Genium displayed in the web browser tab.
  • The NET Genium name is stored in the server variable “#portal#”.
  • The NET Genium name also appears in the subject of the system messages sent to the service e-mail address (reports of licenses and errors).
  • Details
    • When no valid address of the default sender of all messages is filled in, the e-mail address in the “#noreply#” variable is derived from the NET Genium name. A detailed description of the variable is provided in the separate guide Variables.

2.1.2. Version

  • The NET Genium version displayed in the header of the portal (on a mobile device in the title of the header) and as a prefix of the subject of all outgoing e-mail messages.
  • The value may contain HTML, but in the subject of e-mail messages the HTML tags are removed.
  • Details
    • The prefix is not added to the report of the “ResendEmlFiles.exe” program listing the messages that could not be sent in its run.

2.1.3. Portal address

  • Intranet address – the Enter-separated list of these addresses will be used when initializing NET Genium in multiple instances.
    • Details
      • When the list contains more than one address and the “UnderConstruction.txt” configuration file does not exist, a process sends a request to the other addresses of the list after starting so that the other processes start as well. A process in the root of the website skips only the first address. Other processes skip the addresses that contain their own virtual path of the application (for example “/netgenium/”).
      • The main instance is a process in the root of the website and a process whose virtual path does not appear in any address of the list except the first one. A restart of the main instance no sooner than a minute after the previous restart releases the record locks and empties the list of online users of all processes over the same database, whereas a restart of the other instances does so only no sooner than 6 hours after the previous restart.
      • Instances are distinguished only by the virtual path of the application, not by the server: processes with the same virtual path on different servers have no main instance and do not send a request to one another after starting. Processes in the root of the website are all main instances.
      • When more than one address is filled in, the processes of the web application over the same database (for example several application pools or servers) share information about changes: a change of applications (among others application groups, applications, categories, view pages, edit forms, controls, database queries, scripts and their rights), of allowed IP addresses, of public external functions or of the custom color palette made in one process invalidates the cached copies of this data in the other processes as well.
      • Unless more than one address is filled in, these changes may not take effect in the other processes over the same database until they are restarted.
      • The part of the NET Genium settings that the process keeps in memory (for example the SMTP server for emails sent by NET Genium, the password strength or the time zone of the instance) takes effect in the other processes over the same database only after they are restarted, regardless of the number of addresses filled in. For the time zone this applies for example to the way dates are displayed, to the values of the “#now#” and “#today#” variables and to the default values of date controls.
      • External functions that take the time of the instance from “conn.Now”, on the other hand, read the time zone from the database for every new connection, so in the other processes they use the new time zone sooner and until those processes are restarted they may differ from the values of the “#now#” and “#today#” variables.
      • Other processes over the same database load the saved active layout only after they are restarted, regardless of the number of addresses filled in. The style sheet files are regenerated only by the process that saved the layout, in the directory of its own installation. A process with a different installation directory does not regenerate them by itself after a restart – the layout has to be saved in it as well.
  • Internet address – the Enter-separated list of these addresses will be used in e-mail messages sent by the script and will ensure that the user can be redirected to NET Genium for specific records. When the internet address is not filled in, the intranet address is used in e-mail messages.
  • Details
    • The list of addresses in each of the two fields is stored with a length of at most 250 characters. A longer list is truncated.
    • In NET Genium Online neither field is displayed – the address of the instance is given by its identifier (“identifier.netgenium.online”) and NET Genium inserts it into outgoing e-mail messages by itself.

2.1.4. Time zone

  • The NET Genium time zone is automatically set to the time zone of the server on which NET Genium is hosted.
  • By selecting a specific time zone from the drop-down list, this setting can be changed to the desired value.
  • In NET Genium Online the time zone is chosen when the instance is registered.
  • The time zone applies to the date values that the platform itself writes, and to the way they are displayed – for example to the values of the “#now#” and “#today#” variables and to the default values of date controls. The date and time filled in by the buttons of date and time fields and of time fields and by the “Now”, “Now2” and “jsNow” JavaScript functions, the current date in the header and the highlighting of today in the calendar and in the planners correspond to the time zone in which the user sees the times (see below).
  • Changing the time zone does not recalculate the values already stored, it only changes their meaning. It is therefore advisable to set it when the instance is being deployed, not while it is in use.
  • Individual users can have the times displayed in their own time zone – the Time zone and Show times in my time zone fields in their user account are there for that. The conversion only affects what is displayed: the value is always stored in the time zone of the instance, so the conditions of database queries, the values of the “#now#” and “#today#” variables in scripts and statistical queries are unaffected. Only the values that carry a time are converted – a date without a time (a due date, for example) is not a moment and stays unchanged.
  • Details
    • The Time zone and Show times in my time zone fields exist only in newly created NET Genium installations. They are not added to older installations yet.
    • For date-only fields and in filters, the date picker and a double click into an empty field fill in today's date in the NET Genium time zone, just like the “Current date” default value – a date without a time is not converted.
    • Values are displayed and entered in the user's time zone in the edit form, in the view table, in the calendar, in the planners, and in the data export and import of the view table. Filters and search in the view table, on the other hand, are entered in the time zone of the instance, as are the values of the “#ng_...:value#” variables.
      • Print templates and exports follow the time zone of the user who prints or exports. In an e-mail composed by the “Send email” script step, the values of the controls listed in its body follow the time zone of the user whose action sent the e-mail – usually the user whose action started the script. An e-mail from the save scripts (OnBeforeSave, OnAfterSave) of a record whose saving added a change to the synchronization queue is sent only together with the sending of the changes for synchronization, and the user whose action started that sending decides.
    • Times in log files and in the e-mails in which NET Genium reports errors automatically are written in the time zone of the server's operating system, not in the time zone of the instance. For an instance whose time zone differs from the server's, they therefore differ from the times stored in the database, for example in the usage statistics.

2.1.5. Date format

  • The date format determines the order of the day and month in the short date across the entire application – when displaying as well as when entering and reading dates in forms, filters and scripts – regardless of the user's language. The separator (period or slash) and the decimal separator of numbers follow the user's language.
  • The drop-down list contains the following options:
    • dd/mm/yyyy – day month year
    • mm/dd/yyyy – month, day, year
  • Details
    • A change of the date format applies immediately only in the session in which it was saved. Other sessions, including those of the same user, get it only after logging in again. In the other processes of the web application over the same database it takes effect only after they are restarted.

2.1.6. Default map

  • The default map defines the default geographical center of all map data that does not contain any points on the map in the currently displayed data visualization. In other cases, the geographic center is calculated automatically from all points displayed on the map. The center to which a user has moved the map is remembered by NET Genium for each user separately and takes precedence over both.
  • The default map controls the search for addresses stored in “TextBox” controls whose name in the user's language is “Najít na mapě” (Czech), “Nájsť na mape” (Slovak), “Find on map” (English), “Auf der Karte finden” (German) or “Trouver sur la carte” (French). For users of different languages the name is therefore entered in several languages.
  • The drop-down list contains the following options:
    • Czech Republic – address search offers map portals “maps.google.cz” and “www.mapy.cz”.
    • Slovakia – address search is offered by the map portal “maps.google.sk”.
  • Details
    • In NET Genium Online the field is not displayed and the drop-down list offers no country – the setting stays empty and NET Genium behaves the same way as with the “Czech Republic” option.

2.1.7. Fulltext catalog

  • Catalog for the full-text search of the content of file attachments. The content is searched only for the File control and only in files with selected extensions – a detailed description is provided in the separate guide Edit form – File.
  • The drop-down list contains the following options:
    • None – the content of file attachments is not searched while searching for values in view tables, but file names are always searched.
    • Windows Search – while searching for values in the view tables, the content of file attachments is searched as well using the “Windows Search” full-text catalog. A detailed description of the configuration of the “Windows Search” full-text catalog is provided in the separate guide Installing NET Genium on the web server.
    • Indexing Service – while searching for values in view tables, the content of file attachments is searched as well using the “Indexing Service” in the catalog, the name of which is entered in the text field below the drop-down list of the full-text catalog. The “Indexing Service” was last available in the “Windows Server 2008” operating system, so we recommend replacing its use with the full-text catalog “Windows Search”. A detailed description of the configuration of the “Windows Search” full-text catalog is provided in the separate guide Installing NET Genium on the web server.
  • Details
    • In NET Genium Online neither the drop-down list nor the text field with the catalog name is displayed – full-text searching of file attachments is not available in the cloud.

2.2. “Emails” tab

2.2.1. Default sender of all messages

  • An email address that will be set as the default sender of all messages. Emails that have senders from another domain will be sent using the default sender of all messages. In this case, the original sender of the message is preserved in the “Reply-To” header of the message, so any replies are delivered to the original sender. If the message has its own reply address, that address is kept.
  • Details
    • In NET Genium Online the address is fixed to “identifier@netgenium.online” according to the identifier of the instance and the field cannot be edited – no instance can therefore send messages under the address of another instance.

2.2.2. System warnings

2.2.2.1. Service e-mail address

  • Administrator's email address for sending system messages. If the address is empty, no system messages will be sent. An address in the “netgenium.com” domain does not receive reports of a login refused because of licenses, reports of less serious errors in applications nor error messages of the “LOGERROR” function.
    • E-mail messages without any recipient – with empty To, Cc and Bcc fields (NG NO-RCPT: will be inserted in the subject of the message), but a message whose entered addresses are all invalid is not redirected here
    • Reports of a login refused because the licenses are exhausted or because the system is running without a valid license key, in which case only one user may be logged in – a report is sent at every such refusal in the web browser and through the web services of the “NETGeniumConnection” library, not at a login with a token through the integrated MCP server
    • Error messages in applications when the “Enable automatic error reporting to NetGenium” field on the “Other” tab is checked
    • Error messages when synchronizing records, except transient network, database and disk errors – the web application sends the same error at most once an hour, the “StartSynchro.exe” program only at the first failure of the queue
    • Error messages written by the “LOGERROR” server function – the same message at most once an hour, not sent in a test run of the script
    • Reports of the “ResendEmlFiles.exe” program listing the messages that could not be sent in its run – a detailed description of the program is provided in the separate guide Utilities
    • Reports of the “Update.exe” program about a failed update in an update with the “-j” parameter and in a bulk update, if the SMTP server is filled in
  • In NET Genium Online the service e-mail address also receives warnings about running out of credit, about inactivity of the instance and about a failed automatic top-up of credit. When the service e-mail address is not filled in, these warnings are sent to the e-mail address with which the instance was registered.

2.2.2.2. Sender of system warnings

  • An email address that will be set as the sender of system messages.
  • If the address is empty, the address filled in as the “Default sender of all messages” is used. If that one is empty as well, system messages are sent from an address in the “netgenium.com” domain.
  • Details
    • If neither address is filled in, reports of a login refused because of licenses and error messages of the “LOGERROR” function are sent from “license@netgenium.com”, reports of errors in applications and during record synchronisation from “error@netgenium.com”, reports of the “ResendEmlFiles.exe” program from “resendemlfiles@netgenium.com” and reports of the “Update.exe” program from “support@netgenium.com”.
    • Reports of a failed update contain “FinishUpdate ERROR” and the server name in the subject and are sent only through the filled-in SMTP server, without a backup server.
    • Messages without any recipient (“NG NO-RCPT”) keep their original sender.
    • In NET Genium Online the field is not displayed and system messages are always sent from the default sender address of the instance. The sender of other messages (the “Send email” script step, server functions, the “New email” form) is likewise always replaced by the default sender address of the instance in the cloud. If the message has no reply-to address, the original sender address is used as one.

2.2.3. Outgoing mail server

2.2.3.1. SMTP Server 1

  • The name or Internet address of the SMTP mail server used to send e-mail messages.
  • A port separated by a colon may follow the server name, for example “smtp.example.com:587”. Without a port the default port is used.
  • The “The server requires authentication” checkbox turns on signing in to the server with the “Account name” and “Password” values. The “SSL” option (an encrypted connection to the server) applies only together with authentication.
  • SMTP Server 1 is used to send e-mail messages through the following commands:
    • View page – New email
    • Button – Open the form for entering a new e-mail message
    • Script – Send email
    • Script – SENDMAILMESSAGE()
    • Script – SENDMAILINVITATION()
    • Script – SENDMAILINVITATION2()
    • Script – SCHEDULEMAILMESSAGE()
  • Details
    • In NET Genium Online the whole “Outgoing mail server” section is not displayed and cannot be configured – SMTP Server 1 is fixed to “localhost”, so all instances send mail through the mail service of the cloud server. The “SMTP TEST 1” and “SMTP TEST 2” buttons are not displayed either.

2.2.3.2. SMTP Server 2

  • The name or Internet address of the SMTP mail server used to send e-mail messages.
  • The port, the “The server requires authentication” field, the “SSL” option and the “Account name” and “Password” values have the same meaning as for SMTP Server 1.
  • SMTP Server 2 is used to send e-mail messages through the following commands:
    • Backup SMTP Server – all e-mail messages that fail to be sent the first time using SMTP Server 1 are forwarded for sending using SMTP Server 2. If SMTP Server 2 is not defined, or fails when sending a message using SMTP Server 2, the e-mail message is saved in the “SMTP” directory as an “eml” file, and “ResendEmlFiles.exe” tries to resend it. Which is typically run every 30 minutes using a scheduled task.
    • Script – SENDMAILMESSAGE2()
  • Details
    • In NET Genium Online SMTP Server 2 is not displayed and cannot be filled in – a backup mail server is not available in the cloud.
  • If neither SMTP Server 1 nor SMTP Server 2 is defined, all e-mail messages are stored in the “SMTP” directory in the form of “eml” files. The name of the “eml” file consists of the date and time of its creation and a unique GUID identifier (e.g. “2026-06-09 10-20-20 8925b488-b4a8-4192-a503-60b74b853186.eml”). The “ResendEmlFiles.exe” program, which typically runs every 30 minutes with a scheduled task, starts sending them only after SMTP Server 1 or SMTP Server 2 is set up. Until then it does not send the messages and the sending attempts are not counted. Messages successfully sent by “ResendEmlFiles.exe” are deleted from the “SMTP” directory, unsuccessfully sent messages are attempted at most 48 times (the scheduled task created by “Setup.exe” runs from 6:00 to 24:00 every 30 minutes, so 48 attempts take about a day and a quarter). Messages whose sending ended with a permanent error (for example invalid syntax of the recipient address – “Bad recipient address syntax”) are attempted only once. Afterwards the program ignores these files in the “SMTP” directory. The list of unsuccessfully sent or already ignored messages is stored in the configuration file “SMTP/ResendEmlFiles.errors”.

2.2.3.3. SMTP TEST 1 and SMTP TEST 2

  • The “SMTP TEST 1” and “SMTP TEST 2” buttons send a test message with the subject “test” to the service e-mail address through SMTP Server 1 or SMTP Server 2 respectively. The values currently filled in the dialog are used, even if they have not been saved yet. The result of sending – “OK” or the error text – is displayed in a message.
  • Details
    • In NET Genium Online the buttons are not displayed.
    • Without a valid service e-mail address the test message is not sent and the dialog asks for it to be filled in.
    • The sender of the test message is the sender of system warnings. If it is not filled in, the default sender of all messages is used, and if that one is not filled in either, the service e-mail address.

2.3. “Print templates” tab

  • List of print templates stored in the “Templates” directory with the option to add or remove templates from this directory.
  • Print templates from this list are offered in “File” and “Button” controls.
  • Unused print templates are shown in italics.
  • A detailed description of print templates is provided in the separate guide Print templates.

2.3.1. Statistics

  • The “Statistics...” link below the list of print templates opens an overview of all buttons in edit forms and on view pages and of all “File” controls that use any print template. For each control it shows the print template used and the date of its last change, and it allows opening the settings of the control.

2.3.2. Add template

  • Button for inserting a new print template in the “Templates” directory. A template with the same name as a file already in the directory replaces it without asking – this is how an existing template is updated.
  • Details
    • Files that the web server executes or reads as configuration (for example with the “.aspx”, “.config” or “.dll” extension) cannot be uploaded to the “Templates” directory.

2.4. “Permissions” tab

2.4.1. User account administrator

  • List of user groups or users who:
    • they can set a new password for other users (except for users who have administrator privileges). As with user groups, the administrator of user accounts needs the right to edit the user record to save the new password. They may not change the login name, the Windows account or the email of a user with administrator privileges either, and may not delete their account. Only a user with administrator privileges may do that (for the user “Administrator” only that user). In the “User” form, the “Login name”, “Windows account” and “Email” fields of such a user are shown to others as read-only, and changing a value directly in a view table does not change them. Changes outside the edit form – a mass change and an MS Excel import in a view table, moving in a tree or a write from the Planner control – do not change the login name, the Windows account, the email or the password of such a user, while the other fields are changed, and deleting records in a view table does not delete their account. The “Import data” dialog and script steps do not have this protection: an import and script steps saving values to the database change the login name, the Windows account and the email of such a user, and the “Delete record” script step as well as the “DELETEDATA” server function delete their account (except for the user “Administrator”). Who may use them is determined by the “Allow data import” option of the view table, or by the rights to the button or edit form with the script.
    • they can add and remove user groups of other users. Only the user “Administrator” may add or remove the “Administrators” group. To save changes in a user record, the administrator of user accounts additionally needs the right to edit the record, typically as a co-owner of the “User” form.
    • they can set up new user groups for each rights group.
    • they can send a chat message to a whole user group or to all users currently signed in (as well as users with administrator privileges).
    • sees all sessions in the list of online users (as well as users with administrator privileges). Other users see for each user online only one record for the interactive login in the web browser and one record for other access (for example the MCP server or the web services of the “NETGeniumConnection” library), in terms of time always the one with the latest user login date. The “IP address” and “License” columns are shown in the list of online users only to users with administrator privileges and to user account administrators.
    • they can log out sessions of other users in the list of online users, but sessions of users with administrator privileges can be logged out only by a user with administrator privileges. This restriction and the restriction on the number of records per user apply only to the list of online users. The table inserted by the #usersonline# variable shows everyone who can see it all sessions in which the user worked within the last hour, including the “IP address” and “License” columns (an administrator and a user account administrator also see in it the sessions in which the user has not worked for more than an hour – they are displayed dimmed and consume no license), and a user account administrator can log out even a session of a user with administrator privileges in it. Logging out a session logged in with a token through the integrated MCP server does not end the access – the next request with a valid token logs in again. Logging out a session logged in through the web services of the “NETGeniumConnection” library ends the connection and it is necessary to log in again. A detailed description of how a connection through web services ends is provided in the separate guide Console applications.
  • A change in the list of user account administrators is not reflected in the session in which the user is currently logged in – it takes effect only after the user logs in again. The exception is saving the user’s own record in the “User” form, after which the session in which the record was saved is refreshed. If the user is to lose the user account administrator rights immediately, it is necessary to log out the user’s sessions in the list of online users.

2.4.2. Administrators with access to the MCP server

  • List of users who are allowed to work with the integrated MCP server of the instance. Users with administrator rights, i.e. members of the “Administrators” group, and the “Administrator” user can be selected. The “Administrator” user always has access. Adding them to the list, however, makes the list non-empty, so adding only the “Administrator” user restricts the MCP server to that user alone.
  • If the list is empty, the MCP server can be used by any user with administrator rights who has generated a personal MCP token.
  • If the list contains at least one record, the MCP server can be used only by the “Administrator” user, i.e. the user with database ID 1, and by the users listed. For all other users the request is refused with a 403 response and the reason is written into the “Auth” log.
  • The restriction applies to all tools of the MCP server, i.e. to reading and writing data, to the implementation model and to the framework documentation.
  • Details
    • The restriction applies to connecting an AI tool by signing in as well – an administrator who is not on the list is shown a message that their account is not allowed to access the MCP server instead of the consent screen.
    • The “Access via a custom API” permission of the personal token is not restricted by the list – a custom API handles authorization on its own.
    • An administrator who is not on the list is not offered the “Reading all data and the model via the MCP server” and “Writing all data and the model via the MCP server” token permissions on the “MCP token” tab.
  • A detailed description of the MCP server is provided in the separate guide The integrated MCP server.

2.4.3. IP addresses allowed

  • List of allowed IP addresses from which it is possible to log in to the application if the user is a member of the selected user group.
  • The list of allowed IP addresses is used to set restrictions for users who are in the “Administrators” group and therefore have administrator privileges, including the admin mode option. Admin mode is then enabled only if the user accesses the application from specific IP addresses. An administrator who is also a member of another user group and accesses from another IP address logs in in the web browser – if the restrictions of their other groups allow it – without administrator rights. Through the integrated MCP server or through the web services of the “NETGeniumConnection” library they cannot log in from such an IP address. An administrator who is only in the “Administrators” group, and the built-in Administrator account, cannot log in from another IP address at all. If the list contains no addresses for the “Administrators” group, an administrator is restricted by the addresses of their other user groups in the same way as a user who is not in the “Administrators” group – from an IP address outside them they cannot log in at all, neither in the web browser nor through the integrated MCP server or the web services of the “NETGeniumConnection” library.
  • The list of allowed IP addresses is used to set restrictions for users who are not in the “Administrators” group. If the user accesses from another IP address, the option to log in to the application is removed. A user none of whose user groups is in the list is not restricted. A user who is a member of several user groups in the list needs to match the IP addresses of any one of them. When working in the web browser, the IP address is checked only at login, whereas the MCP server checks it with every request. The restriction does not apply on the server desktop (IP address “127.0.0.1”). Validation of a personal MCP token in a custom API does not evaluate the list. A detailed description of the validation is provided in the separate guide API.
  • Details
    • The web services of the “NETGeniumConnection” library check the IP address at login and again with every operation that requires administrator rights. From an IP address from which an administrator would not log in to the web browser with administrator rights, they reject such an operation and call an external function without administrator rights. The “NETGenium.ImportXml” external function is also run without administrator rights from such an IP address.
    • The addresses listed for the “Administrators” group also determine where a file can be uploaded from with the FileUpload tool if its profile unpacks a ZIP archive after transfer or its target directory or copy target is a “bin” or “update” directory or lies inside one. Without any address for this group, such an upload fails, and the exception for the IP address “127.0.0.1” does not apply to it.
    • The line “IP: ?” in the configuration file “RequestHeaders.txt” turns off the check against the list on the server for all logins. A detailed description is provided in the separate guide Installing NET Genium on the web server.
  • The allowed IP address can take the following values:
    • 1.2.3.4 – access is allowed only for this specific IP address
    • 1.2.3 – access is allowed for all IP addresses where the first three parts agree, the value of the fourth part can be arbitrary
    • 1.2 – access is allowed for all IP addresses where the first two parts agree, the value of the third and fourth part can be arbitrary
    • 1 – access is allowed for all IP addresses where the first part agrees, the following three parts can be arbitrary
  • Details
    • An IPv6 address is compared in the same way, part by part separated by colons, and it is therefore written in the same text form in which NET Genium shows it in the “Auth” log.
      • Deleting a user group also deletes the allowed IP address records of that group – in the “User group” edit form as well as when deleting with the “Delete record” script step or via the integrated MCP server.

2.4.4. Public external functions

  • List of public external functions that a client may call without prior authorization by the server. For each function a user group to which it is accessible is selected: without a restriction the function is accessible to anyone including users who are not logged in, otherwise only to users with administrator privileges, or to members of the selected user group. A function cannot be restricted to an individual user.
  • The definition of a public external function must contain only the identifier of the external function, ie the value of the “string id” parameter. A detailed description of external functions is provided in the separate guide External functions, and also for the function “string ngef” in the separate guide Server functions.
  • Details
    • A client that is not logged in calls the function as the anonymous user, whose account is shared by all visitors who are not logged in. A function restricted to a user group of which the anonymous user is a member is therefore also accessible to anyone without logging in.
    • Deleting a user group also deletes the public external function records of that group – in the “User group” edit form as well as when deleting with the “Delete record” script step or via the integrated MCP server.
    • In NET Genium Online the list of public external functions is not displayed – external functions are not available in the cloud.

2.4.5. Add IP address

  • The button inserts a new record of an allowed IP address with the IP address from which the administrator is currently accessing NET Genium and with the “Administrators” group.

2.4.6. Add external function

  • Button for inserting a new record of a public external function.
  • Details
    • In NET Genium Online the button is not displayed.

2.5. “Passwords” tab

Details
  • Repeatedly entering a wrong password on the web pages protected by the passwords on this tab (print templates, restart, AI model) temporarily blocks entering the password – instead of the login form, the page displays the message “Please wait, your request is in order...” and reloads after 5 seconds. The same applies to the web services for downloading and uploading the model and for synchronization – after repeated wrong passwords they reject further requests. Wrong passwords are counted by the IP address the session started from: all visitors who are not logged in share one counter for an IP address and every logged-in user has their own counter for the same address, so the wrong passwords of a logged-in user do not block the others. The web pages, the web services for downloading and uploading the model (together with the FileUpload tool) and the synchronization each have their own counter. The block wears off an hour after the last wrong password at the latest. The wrong-password counters are kept by each process of the web application separately (for example each application pool or server over the same database) and a restart of NET Genium resets them – unlike the blocking of an account after repeated invalid logins, which is stored in the database. For the AI model, a correct password entered from an IP address that is not allowed also counts as wrong. Every wrong password is written into the “Auth” log.

2.5.1. Password strength required

  • The password strength setting determines how complex passwords must be when changing old passwords to new ones and when entering the password of a new user in the “User” edit form. When a password strength is set, a new user cannot be saved with a password that does not meet the set strength.
    • None – The password may be blank. A blank password can be set in the “Change password” dialog, but in the “User” edit form the “Password” field is required by default, so a blank password cannot be saved there.
    • Weak – The password must be at least 5 characters long. The password expires every 12 months, and the new password may be the same as the previous one.
    • Fair – The password must be at least 8 characters long, and must contain characters from at least 3 of the groups {lowercase, uppercase, numbers, special characters}. The password expires every 12 months, and the new password cannot be the same as the previous one.
    • Strong – The password must be at least 12 characters long (administrator password at least 17 characters), and must contain characters from all the groups {lowercase, uppercase, numbers, special characters}. The password expires every 12 months, and the new password cannot be the same as any of the previous passwords.
  • Special characters: - _ , . : ; ! @ # $ % ^ & * = + ( ) { } [ ] < > / ? ' ` " | § and space
  • When a password strength is set, the password must not contain any four consecutive characters of the login name (case-insensitive).
  • When a password strength is set, logging in with the login name “Administrator” (case-insensitive) and an empty password in the login window, in the “Change password” dialog, through the Login.aspx page and through the web services of the “NETGeniumConnection” library is possible only when NET Genium is accessed via localhost (address 127.0.0.1 or ::1).
  • When a password strength is set, a user who has never changed their password themselves must enter a new password at the next login with a user name and password. Only a password change in the “Change password” dialog and on the login page (a forced password change and setting a new password after recovering a forgotten password) counts – a password saved in the “User” edit form is not taken into account and does not change the expiration period, not even when users change it in their own record. A user who has changed their password themselves, even before the password strength was set, enters a new password only after it expires, that is 12 months after their last own change.
  • Details
    • Only letters without diacritics count as lowercase and uppercase letters. Letters with diacritics and characters outside the listed special characters do not count toward any group.
    • Spaces at the beginning and at the end of a password are removed when the password is entered in the “User” edit form, in the “Change password” dialog and on the login page, and so are the parts that NET Genium removes from entered text as unsafe HTML code. Every “<” character from a tag or comment not terminated before the end of the password onwards is saved as “&lt;”. A space therefore counts as a special character only inside a password.
    • Previous passwords are looked up in the user's change history, so deleting the history shortens their list. The “User” edit form allows keeping a password identical to the current one. With the “Strong” password strength, however, no other previous password can be set there either.
    • A new password cannot be entered through the web services of the “NETGeniumConnection” library – if a password strength is set, a user whose password has expired, a user who has never changed their password themselves, or a user whose password has been reset by the “RESETUSERPASSWORD” server function cannot log in there. The reason for the rejected login is written to the “Auth” log.
    • In a newly created NET Genium Online instance, the password strength is set to “Fair”.

2.5.2. Print templates

  • Password for the “url-netgenium/templates” web page, which is protected only by this password, regardless of the user's privileges. If the password is blank, the page cannot be used.
  • The password protects only this web page. In a full installation of NET Genium the print template files from the “Templates” directory can also be downloaded at the direct address “url-netgenium/templates/file name”, even without logging in. In NET Genium Online the “Templates” directory cannot be accessed at a direct address.
  • On the page the print templates from the “Templates” directory can be downloaded, and an existing template can be replaced with a file of the same name using the “Browse...” button in the “Update template” row. New templates can neither be added nor deleted there.
  • A user with administrator privileges manages print templates on the “Print templates” tab of the NET Genium settings dialog. A user without administrator privileges opens the page by entering the “url-netgenium/templates” address.
  • The password is stored in the database only as an irreversible hash, so it is never displayed in the settings – a forgotten password cannot be retrieved, only replaced with a new one.
  • Details
    • If the “DenyLogin.txt” configuration file exists, the website is disabled, even on the server desktop.
    • The password is available only in full installations of NET Genium – in NET Genium Online the field is not displayed.

2.5.3. Restart

  • Password required when restarting NET Genium on the “url-netgenium/restart” web page outside admin mode. If the password is blank, NET Genium cannot be restarted this way.
  • In admin mode NET Genium is restarted without a password, see the [[#restart Restart]] chapter.
  • The NET Genium restart website is located at “url-netgenium/restart”.
  • The password is stored in the database only as an irreversible hash, so it is never displayed in the settings – a forgotten password cannot be retrieved, only replaced with a new one.
  • Details
    • If the “DenyLogin.txt” configuration file exists, the website is disabled, even on the server desktop.
    • The password is available only in full installations of NET Genium – in NET Genium Online the field is not displayed and NET Genium is restarted by the service provider.

2.5.4. Synchronisation

  • If the password is blank, it will not be possible to synchronize data from the remote server with your NET Genium.
  • Anyone who knows the synchronization password can create, modify and delete records of any edit form in this installation – receiving synchronization does not check which forms are linked with the sender. The password should therefore be strong, should be given only to linked installations, and the communication should use the “https” protocol.
  • The password is stored in the database only as an irreversible hash, so it is never displayed in the settings – a forgotten password cannot be retrieved, only replaced with a new one.
  • Details
    • The password is available only in full installations of NET Genium – in NET Genium Online the field is not displayed and data synchronisation between instances is not supported.

[[Kotva:ai-model-password]]

2.5.5. AI model

  • Password required when downloading the [[ai-models AI model]] automatically using web services and when uploading model changes back to NET Genium. If the password is blank, the model can neither be downloaded nor uploaded automatically.
  • Anyone who knows the password can upload model changes to this installation – create, modify and delete application groups, applications, categories, edit forms, view pages, controls and scripts, create and modify database queries, user groups and rights groups, and set rights. The changes are written as the Administrator account, so they include objects that other administrators are not allowed to change. The password should therefore be strong, and access should be restricted by “IP addresses allowed” for the “Administrators” group.
  • The website for downloading the model with this password is located at “url-netgenium/ai”.
  • The tool that downloads and uploads the model authenticates itself with this password – in the “ai-model.json” configuration file it is the value of the “ngPassword” key. After changing the password, that configuration file must be updated as well.
  • The password is stored in the database only as an irreversible hash, so it is never displayed in the settings – a forgotten password cannot be retrieved, only replaced with a new one.
  • Besides the password, the IP address the model is downloaded or uploaded from is verified as well – if “IP addresses allowed” on the “Permissions” tab lists addresses for the “Administrators” group, it must match one of them. Without addresses for this group the IP address is not restricted, and the restriction does not apply on the server desktop (IP address “127.0.0.1”).
  • Details
    • The password is available only in full installations of NET Genium. In NET Genium Online the field is not displayed at all and the model can neither be downloaded nor uploaded automatically – in the cloud the AI assistant connects to the [[mcp-data-server integrated MCP server]] of the instance, which serves the model directly.
    • The “DenyLogin.txt” configuration file does not disable the website or the automated downloading and uploading of the model.
    • The model downloaded via the website or automatically is compiled in the same language as in the “AI model” report – in Czech if the default language of NET Genium (the “DefaultLanguage.txt” configuration file) is Czech or Slovak, otherwise in English. The language of the user who downloads the model has no effect on the language of the model.

2.5.6. Generate password

  • The button generates a random password in the form of a GUID identifier and writes it into the dialog together with an icon for copying it to the clipboard.
  • The generated password is not stored anywhere – it only serves as a source of a random value that can be pasted into any of the passwords above. It is displayed only once, so copy it and store it safely.

[[Kotva:colors]]

2.6. “Colors” tab

  • List of colors offered by the color picker when editing a value in “TextBox” controls with the “Show color picker in the edit form” option checked.
  • If the color list is empty, the color picker offers a default color palette.
  • The “Default” button on the “Colors” tab of the database query designer replaces the chart colors with the colors from this list. When the list is empty, the button is not displayed. A detailed description of chart colors is provided in the separate guide [[database-query-designer Database query designer]].

2.6.1. Add color

  • Button for inserting a new color record.

2.7. “Other” tab

2.7.1. Navigator

  • The navigator type setting determines how the navigation area lists the applications.
    • Type A – displays a list of all applications in the navigator, including the options for editing them.
    • Type B – speeds up the work with NET Genium in admin mode, but it is not as comfortable as type A.
  • Details
    • The option is offered only in the old design (up to 2016). In the current appearance of NET Genium it is not displayed in the settings.

2.7.2. E-Learning

  • The e-learning style setting determines what appearance will be used to visualize e-learning courses.
    • Style A – displays e-learning courses in pleasant blue and orange colors and contains pictorial navigation buttons.
    • Style B – is rather conservative and respects the color settings of NET Genium.
  • Details
    • In NET Genium Online the style option is not displayed.

[[Kotva:performance-logging]]

2.7.3. Logging

  • Logging is used to measure the processing time of database queries, scripts, view pages, edit forms and external functions.
    • Off – Processing times of database queries, scripts, view pages, edit forms and external functions are not stored.
      • Details
        • The monthly logs in the “Logs” directory that record the duration of selected operations do not depend on this option – for example “Export-year-month.log” (including the duration of the export database query), “Download-year-month.log”, “RunScript-year-month.log” or “Scripts60sec-year-month.log”.
    • To database – Processing times for database queries, scripts, view pages, edit forms and external functions are stored in the database. From this data it is possible to display aggregated statistics using the “Logging” button directly in the settings of the given control element, resp. its database query, as well as in the settings of the script, view page or edit form. Another option is to display these statistics on the reports page, where statistics of measurements of external functions are also available. A detailed description of the reports is provided in the separate guide [[reports Reports]].
    • To disk – Processing times for database queries, scripts, view pages, edit forms and external functions are stored on disk in the “Logs” directory.
    • To database and disk – Server-side processing times are stored in the database and on disk at the same time.
    • Logging to console – a separate checkbox, independent of the logging option. It displays a console at the bottom of the web browser window into which the processing times of view pages, edit forms, the main page with portlets and the “New email” form are written. The console is displayed to all users, not only to administrators. On mobile devices the times are not measured.
      • Data Transferring Time – communication time between client and server
      • Page Processing Time – server-side page processing time
      • Page Rendering Time – time of page rendering in the web browser
      • Total Waiting Time – total waiting time for the page to be viewed
      • Details
        • The console is part of the portal layout with frames only. In user mode it is therefore not displayed in the frameless mode of NET Genium (the “NoFrames.txt” configuration file).
        • After most actions on a view page or in an edit form that redirect to another page instead of rendering the page (for example saving a record or going back from an edit form), the console shows two values for “Page Processing Time” on the next page: the processing time of the redirecting request and the processing time of that page. The start and end times of each of the two requests are shown when hovering over the respective value, and “Data Transferring Time” includes neither of them. The duration of saving an edit form, which is not written to the statistics of edit forms, is therefore visible in the console.
    • Measure memory consumption – Monitoring the memory consumption of each database query that retrieves data and of each external function.
      • Details
        • Memory consumption is calculated as the difference of the allocated memory of the “w3wp.exe” process before and after the data is successfully retrieved from the database.
        • The “w3wp.exe” process serves the requests of all users of the web application, so the calculated value may be inaccurate and may also include the memory consumption of other requests.
        • The calculated value can also be negative if memory was freed by the Garbage Collector during data loading.
        • For an external function, memory consumption is calculated as the difference of the allocated memory of the “w3wp.exe” process before the function starts and after it finishes. It is not recorded for an external function called via the “ngef.aspx” address that ends the response itself, nor for system external functions that are not written to the statistics tables.
        • With the option enabled, NET Genium also continuously writes the “RunningTasks-process ID.log” file with the list of currently running tasks to the “Logs” directory. As soon as no task is running, it deletes the file. A file left behind (for example when the process ends or the option is turned off in the middle of a running task) is not deleted by any function.
        • A database query that retrieves data (for example a query of a view table, a script or an external function) and ends with running out of memory remains in the list of running tasks until the web application restarts, so that it appears in the “RunningTasks.log” file when the application ends (for example when it is recycled after running out of memory). The “RunningTasks-process ID.log” file is not deleted until then.
      • The measured value of memory consumption is available in reports when database logging is enabled, and on disk in the log file “Logs\Data-yyyy-MM.log” for those database queries whose memory consumption exceeds 1GB (the word “LastMemoryConsumption”).
    • Delete old logs in the database – Deletes all measured data from the database, regardless of its age.
    • Delete old logs on the disk – Deletes log files whose name begins with a date and files in dated user subdirectories from the “Logs” directory, both only when older than 7 days. Other files, such as “System.log” or the monthly logs with a prefix (for example “Data-yyyy-MM.log”), are kept.
  • Details
    • In NET Genium Online the “Logging” option offers only the “Off” and “To database” options – logging to disk is not available. The “Measure memory consumption” option is not displayed either.

[[Kotva:options]]

2.7.4. Options

  • Enable automatic error reporting to NetGenium
    • Checking this box turns on sending e-mail messages about errors that occur in NET Genium while users without administrator privileges work. Errors of users with administrator privileges are not sent.
    • A message about a serious error is received by NetGenium Technical Support and by the service e-mail address, a message about a less serious error only by the service e-mail address. A less serious error is not reported when it occurs for the first time. It is reported once it recurs later than one hour and no later than 24 hours after the previous recorded occurrence. The occurrences are kept only in the memory of the web application, so a restart resets them.
    • The same error is reported at most once an hour.
    • Without checking this box, messages about errors in applications are sent neither to the technical support nor to the service e-mail address.
    • For each error, the user is shown an error message on a separate page.
    • Details
      • The message contains the technical description of the error (type, message and stack trace), the page address, the login name of the user (if the user is known), the user's IP address, the identification of the user's web browser, the server name, the versions of the operating system and of .NET Framework, the account the web application runs under, and the date and time of the error.
      • If the database cannot be connected to, the message “An error occurred during connecting to the SQL database server!” with the link “Try again” is shown instead, and the reason why the database is unavailable is written to the “Errors.log” log file.
  • Log usage of view pages
    • Checking this box determines whether the use of individual view pages in the database should be logged in the “Settings” application:
      • Logging into the “Settings/Statistics” table – Visited view page, User, Date
      • Logging into the table “Settings/Statistics 2” – Visited view page, Number of visits
      • Logging into the table “Settings/Statistics 3” – Visited view page, User, Number of visits
    • View page logging is used to detect underused or unused view pages by users.
    • The opening of the same page by the same user is logged in the database only once an hour. The visits in the “Settings/Statistics 2” and “Settings/Statistics 3” tables are counted in the same way.
    • Details
      • Visits of the anonymous user are not logged.
      • Only opening a view page is logged. Displaying a control of a view page in a portlet on the main page is not logged, so a view page whose controls are used only as portlets is reported by the log as unused.
      • In NET Genium Online this field is not displayed.
  • Enable sending lost passwords on the login page
    • Checking this box determines whether the “Lost password” button should be displayed on the login page next to the “Log in” button, which is used to send password recovery instructions to the user's email address.
    • When the “Portal address” is filled in, the e-mail contains a link for setting a new password. The link is single-use and valid for 1 hour. When no portal address is available, a temporary password with the same validity is sent instead, with which the user logs in and changes the password right away.
    • Password recovery can be requested at most five times in 24 hours for each user, and at most three times in five minutes from a single IP address.
    • Once the password change through the link or the temporary password is complete, the user receives a notification at their email address with the date, the IP address and the browser the change was made from.
    • Details
      • In a newly created NET Genium Online instance, this box is checked.
      • An unused link and a temporary password are invalidated by every successful login of the user in the browser (with a login name and password, through Microsoft, Google, Facebook or Apereo, through Windows Integrated Authentication or with a login ticket) and by every successful login through the Login.aspx page (the Uploader.Login_aspx method of the NETGeniumConnection library). Password recovery then has to be requested again.
      • Every password recovery request creates its own link, valid for 1 hour from that request. A new request does not invalidate earlier unused links. A temporary password, on the other hand, is valid only from the latest request.
      • In NET Genium Online the portal address is derived from the identifier of the instance, so the link works with no further configuration.
      • The login page always answers the same way, regardless of whether the entered user exists and has an email address filled in – valid user names therefore cannot be probed. When the entered user does not exist or has no valid e-mail address, this is written to the “Warnings” log. The result of sending the e-mail is not evaluated.
      • In NET Genium Online both e-mails – the one with the link and the change notification – are sent in the visual style of the other cloud messages, with a button instead of a bare link and with an overview of the request details. A classic installation sends the e-mails unchanged.
  • Send emails with tips on getting the instance going
    • The field is displayed only in NET Genium Online. Checking this box determines whether NET Genium sends e-mails with tips on getting started with the instance in the first weeks after registration. Each e-mail points out a step that is still missing in the instance: the first work in the instance (no earlier than the 3rd day after registration), an application built by AI (no earlier than the 7th day) and connecting an AI agent through the MCP server (no earlier than the 14th day). Each e-mail is sent at most once, only within 30 days of registration and only on working days.

3. Application “Settings”

3.1. Core application

  • NET Genium contains a default set of edit forms and their corresponding view pages, which are essential for the correct functioning of the entire application. These edit forms are located in the “Settings” application.
  • The “Settings” application cannot be deleted or moved to another application group.
  • Modifications to the default edit forms and view pages in this application can be performed only by a single user with the highest permission level – the “Administrator” user with database ID 1.
    • Details
      • If the application group of the “Settings” application has the option User “Administrator” and following administrators selected in its admin mode, the default edit forms and view pages can also be modified by the administrators selected in the list under this option. A detailed description of the admin mode is provided in the separate guide [[application-group#admin-mode Application group]].
      • Edit forms and view pages added to the “Settings” application later can be modified by every user with administrator rights, or, with the option User “Administrator” and following administrators, only by the “Administrator” user and the selected administrators.
  • The “Settings” application contains the following edit forms and their corresponding view pages:
    • User – database table “susers” with the list of users
      • Full name – the user’s full name
      • Surname – the user’s surname
      • First name – the user’s first name
      • Title – the user’s title
      • Login name – the user's login name, whose uniqueness is checked only when the record is saved in the “User” edit form – changing the value directly in a view table, a bulk change, an import or a script step does not reject a duplicate name
      • Password – the user’s password
      • Language – the user’s language setting. The list of languages is set when the NET Genium installation is created, according to the languages the installation contains (in NET Genium Online Czech, German, English and Slovak)
      • Time zone – the time zone in which times are displayed to the user if the “Show times in my time zone” field is checked (see the chapter [[netgenium-settings#time-zone Time zone]])
      • Show times in my time zone – a checkbox that turns on displaying times in the user’s time zone. Both time zone fields exist only in newly created NET Genium installations
      • Windows account – the domain account name of the user in Active Directory, used to enable automatic login to NET Genium without entering a username and password
      • Email – the user’s email address
      • M-Password – password for the user’s account on an Android mobile device. The required password strength does not apply to it, and for an existing user it can be changed, apart from the user themselves, only by a user with administrator privileges (for the user “Administrator” only that user)
      • Rights group – foreign key to the rights group directory, defining the list of user groups of which the user is a member. Assigning a user to a rights group is the preferred method of granting permissions, though manual assignment of user groups is possible via the next control “User groups”.
      • User groups – list of user groups in which the user is a member. Manual assignment of user groups for each user individually is not the preferred method of permission assignment. The recommended method is selecting a rights group as described above.
    • User group – database table “susergroups” with the list of user groups
      • User group – name of the user group
      • Description – description of the user group
    • Rights group – database table “srightsgroups” with the list of rights groups
      • Rights group – name of the rights group
      • Description – description
      • User groups – list of user groups defining the rights group. Saving a changed list also replaces the user groups of every user who has this rights group set with the new set
    • Public holiday – database table “sholiday” listing current public holidays. Content is generated automatically according to the language settings of NET Genium.
      • Holiday name – name of the public holiday
      • Date – date of the public holiday
      • Half-day – checkbox for marking half - day public holidays (used mainly in Germany)
      • Details
        • At every start, NET Genium adds to the “sholiday” table the public holidays of the current and the following year according to the default language (the “DefaultLanguage.txt” file), if the table has no record with the same date. Holidays are available only for Czech, German, French and Slovak. A deleted holiday is therefore inserted again at the next start.
    • Layout – database table “slayout” with the list of graphic themes of NET Genium
      • Name – name of the layout
      • Save as active layout – checkbox for marking the layout as active and regenerating CSS
      • Font name
      • Text size
      • Font color
      • Header – Logo
      • Header – Background image
      • ...
    • Invalid login – database table “sinvalidlogins” with invalid login attempts
      • Date – date of the invalid login
      • IP address – IP address from which the login attempt was made
      • Login name – login name that was used, stored as HTML code: characters with codes 160 to 255 (for example the letters á, é, í or a non-breaking space), characters outside the basic plane of Unicode (for example emoji) and the characters &, <, >, double quotation marks and apostrophes are stored in it as HTML entities. If the name encoded this way is longer than 50 characters, its first 47 characters followed by three dots are stored
      • Password – always the value “*****”. The entered password is not stored
    • Statistics – database table “sstatistics” with view page usage statistics
      • View page – visited view page
      • User – login name of the user who visited
      • Date – date of visit
    • Statistics 2 – database table “sstatistics2”
      • View page – visited view page
      • Session – number of visits
    • Statistics 3 – database table “sstatistics3”
      • View page – the visited view page
      • User – the login name of the user who visited the page
      • Session – the number of visits
    • Synchronization – database table “ssynchro” with synchronization errors. Some errors, for example in reserving an ID on the remote side, in locally renumbering a new record, in preparing a change for sending or in sending emails, are written only to the “Synchro-year-month.log” log file
      • Error date
      • Edit form – name of the form where the error occurred
      • Record ID – ID of the record involved
      • Error – error description

3.2. Optional applications

  • The “Install” directory contains a set of optional applications that can be imported into NET Genium.
  • Available optional applications:
    • API – management of API keys for external system access and SQL - query records available for download via API.
    • Applications – overview and management of applications installed in NET Genium. The edit forms use views defined in their settings. These views must be created afterwards on the “Administration” tab using the “CREATE VIEW” command.
    • Business Logins – management of credentials and tokens for communicating with the Google, Facebook and Microsoft APIs.
    • DataGrid Settings – saving/loading individual datagrid settings. The application uses the “SAVEDATAGRIDSETTINGS” and “LOADDATAGRIDSETTINGS” server functions and includes an example of their use.
    • E-learning – e-learning courses and materials.
    • E-mail – mail accounts, contacts and signatures of users for the Email control and the new e-mail message form, management of email templates and sent emails.
    • FileUpload – management of files uploaded to the server (used by FileUpload.exe).
    • Licenses – monitoring license usage over time.
    • Maps – map backgrounds and geographic data visualization. The application demonstrates working with maps.
    • Practical information – a list of public holidays and foreign words.
    • Reset password – mass password reset and email delivery.
    • RUIAN – address lookup in the Register of Territorial Identification, Addresses and Real Estate (RÚIAN). The lookup is handled by the “RUIAN_Search” external function, which NET Genium itself does not contain – it must be added to the “ngef.dll” file as a call of the “RUIAN.Adresa.Search” method of the “NETGeniumConnection.dll” library (see [[external-functions External functions]]). The method looks up addresses in the “ng_ruianobec”, “ng_ruianulice” and “ng_ruianadresa” tables, which must be filled with RÚIAN data.
      • Details
        • The “RUIAN.Adresa.Search” method takes three parameters: the suffix of the names of the JavaScript functions called by the links in the list of found addresses, the array of parameters of the external function unchanged, and the database connection. The links call the “click_psc”, “click_nazulice” and “click_cp” functions with this suffix after their names. The RUIAN application uses them without a suffix, so an empty string is passed as the first parameter.
        • The method requires all seven parameters the application calls the external function with. It closes the database connection itself and ends the response to the request with an exception, so no code after its call runs.
    • Services – monitoring services running via Windows Scheduler or console apps.
    • SMS – sending and receiving SMS. The application is required for the “SMSService” service to run.
    • Stats – edit forms for reading logs recorded by NET Genium while database logging is enabled. The edit forms use views defined in their settings. These views must be created afterwards on the “Administration” tab using the “CREATE VIEW” command.
    • UNION – examples of the SQL UNION operation using views. The edit forms use views defined in their settings. These views must be created afterwards on the “Administration” tab using the “CREATE VIEW” command.
    • Web – management of content published via NET Genium.

4. Configuration files

  • Configuration files contain data required for the correct operation of the web application but are not part of the database. They are located in “NETGenium\Config” as text files or, in some cases, as files in the JSON format.
  • Details
    • Most configuration files are read by NET Genium only when the web application starts, so creating, changing or deleting a file takes effect only after NET Genium is restarted (see the [[#restart Restart]] chapter). The “UnderConstruction.txt”, “UnderConstruction2.txt” and “Holidays.txt” files are read every time they are used. NET Genium reads the “ConnectionString.txt” and “License.txt” files again during operation under certain conditions, but a change to them, too, takes effect reliably only after a restart. A license key uploaded or activated in the “License key request” dialog takes effect immediately in the web application process that received it. The “DenySynchro.txt” file is read by the “NETGeniumConnection” library every time it saves or deletes a record – typically in external functions, Windows services, when writing and deleting with change history through the integrated MCP server and through the web services of the “NETGeniumConnection” library. The “RunScript.exe” and “StartSynchro.exe” programs read it every time they run. Other writes of the web application (edit forms, view pages and scripts) and the sending of the synchronization queue by the web application reliably follow a change to the file only after a restart. The update program “Update.exe” reads the “Tester.txt” file and the “SqlBackup.exe” program reads the “UpdateArchive.txt” file themselves every time they run.
  • BlindFriendly.txt – when this file exists, view tables, the “Calendar”, “Planner”, “TimeTable” and “Tree” controls and the portlets on the main page use a static toolbar displayed permanently under their title instead of a dynamically displayed one. The file may optionally contain a list of control types (one per line) to which the static toolbar is restricted (“DataGrid”, “Calendar”, “Planner”, “TimeTable”, “Tree”, with the portlets represented by the value “HTML”). An empty file applies to all of them. The types are compared literally, so a file without types must not contain even an empty line.
  • ConnectionString.txt – the connection string to the NET Genium database.
  • Copyright.txt – placeholder HTML code for the copyright displayed in the navigation area. Unless the content of the file begins with the “©” character and a space, server functions are evaluated in it. If the file does not exist, the text “© 20xx NetGenium” is shown. A second option for modifying the copyright is via the NETGenium.Copyright external function, see the [[external-functions#netgenium-copyright External functions]] guide.
  • CustomIcons.txt – a list of custom icons replacing default icons used in the application. Each line defines one icon in the format: “Images/Picker.gif:Images/Custom/Picker.svg”
    • Details
      • A line containing more than one colon (for example a custom icon specified by an absolute address “https://...”) is ignored without any warning.
  • DefaultLanguage.txt – two-letter code of the default language in which the “Settings” application is localized and which is assigned to users “Administrator” and “Anonymous” upon creation (“cs”, “de”, “en”, “fr”, “sk”).
  • Demo.txt – when this file exists, saving or deleting anything in the web application is disabled. The file may optionally contain a list of database tables (one per line) in which changes remain allowed. For example, “susers_vf” enables user customization of view tables. Where changes are disabled, scripts do not send e-mails either – neither the “Send email” step nor the server functions sending e-mails are performed. In tables in which changes are allowed, e-mails are sent as usual. Demo mode does not prevent writes performed by the own code of an external function: an external function called from a button script, an HTML control, JavaScript, a scheduled task or as a “NETGenium.*” callback outside saving and deleting a record is executed the same way as outside demo mode (the “test” parameter does not depend on demo mode – the exceptions are the “NETGenium.Import” and “NETGenium.ImportXml” callbacks, which do not run in demo mode), and everything it writes to the database through the script’s “DbCommand” passed to it or through its own “DbCommand” is saved – demo mode suppresses only the writes of the script itself. Demo mode rejects a password change in the “Change password” dialog unless the file lists the “susers” table, but a forced password change on the login page saves the password anyway, so that the user can log in.
    • Details
      • Demo mode does not prevent receiving synchronization from other installations – an instance in demo mode can be filled by synchronization.
      • Nor does demo mode prevent writes performed by an SQL command sent through the web services of the “NETGeniumConnection” library as a query for reading data or a scalar value. Saving and deleting a record, an SQL command without a return value and adding and deleting an attachment through the web services are rejected by demo mode, saving and deleting a record only in tables not listed in the file. An external function called through the web services writes the same way as an external function called from elsewhere.
      • The personal display settings that controls and portlets save automatically while being worked with (for example the sorting, paging, search and column filter values of a view table, the choice of a composed filter template or the displayed period and resources of the planning calendar) are saved in demo mode as well, even if the file does not list the tables they are saved to. They are not saved for the anonymous user, except for the column selection of a view table and of its details and the choice of a composed filter template assigned to the user by an administrator. The dialogs for customizing the display (for example “Customize view table...”, the composed filter, the portlet and favorites settings) and the “write_user_settings” tool of the MCP server require the file to list the “susers_vf” or “susers_vfc” table.
      • Nor does demo mode prevent working in the chat window (sending, deleting and marking messages as read), managing personal MCP tokens (including the “Administrator” user changing the permissions of other users' tokens and deleting them), disconnecting an application connected through the MCP server, or managing notification subscriptions.
  • DenyContextMenu.txt – when this file exists, right-clicking selected text in the “RichTextBox” control and in the “TextArea” control with the “Wiki” or “Markdown” data type displays the default context menu of the web browser instead of the formatting context menu. Text is then formatted with the tools in the toolbar above the control.
  • DenyCookieless.txt – when this file exists, the web application requires cookies on the client side. It takes effect only after an update or a restart of NET Genium (see the [[#restart Restart]] chapter) rewrites the “Web.config” file. Deleting the file is, however, not applied to the “Web.config” file by a restart, only by an update of NET Genium. Consequently:
    • SessionID will not be inserted into page URLs (“.../netgenium/(S(33cipeb0js15bo1t1xhkupr4))/default.aspx”)
    • it will not be possible to log in within a single web browser under different user accounts in different tabs – the web browser merges individual sessions.
  • DenyExport.txt – when this file exists, exporting applications in the NET Genium web interface is disabled, but the “ApplicationManager.exe” program run on the server does not respect the restriction.
  • DenyInvalidLogins.txt – when this file exists, account blocking after repeated invalid logins does not apply to logins with a user name and password in a web browser from IP addresses listed in “IP addresses allowed” for the “Administrators” group. The exception applies to any login name entered from such an address, but not to connections via the web services of the “NETGeniumConnection” library.
  • DenyLogin.txt – when this file exists, login with a user name and password is possible only on the server desktop or from the IP address “127.0.0.1”. From anywhere else the login window is not displayed and a login with a user name and password is refused. Users can log in from there only by other means (login ticket, Microsoft sign-in, Windows authentication). Connections via the web services of the “NETGeniumConnection” library are not restricted by the file, whereas the integrated MCP server is disabled while the file exists. While the file exists, the websites for restarting NET Genium (“url-netgenium/restart”) and for editing print templates (“url-netgenium/templates”) are disabled as well, even on the server desktop. The file may optionally contain a URL for redirecting unauthorized login attempts and for redirecting after logout. The URL may contain the “#viewpage#”, “#form#” and “#id#” variables, which are replaced with the values of the “viewpage”, “form” and “id” parameters of the request address (0 if the parameter is missing), and the “#loginname#” and “#language#” variables, which are replaced with the login name and the language of the user from the last login in the same browser. If the file contains the “#loginname#” or “#language#” variable, the login name or the language is stored at login in a browser cookie valid for 6 months. Without the cookie an empty value is used.
    • Details
      • The file does not disable the website for downloading the AI model (“url-netgenium/ai”) or the automated downloading and uploading of the model.
  • DenyStartSynchro.txt – when this file exists, the web application does not send the synchronization queue itself. The queue is then sent only by the “StartSynchro.exe” program run by a scheduled task.
  • DenySynchro.txt – when this file exists, changes are neither queued for synchronization nor sent to linked servers, but receiving synchronization from other installations is not disabled by it (an empty synchronization password disables it).
  • EncryptionKey.txt – encryption key used for encrypting “TextArea” and “RichTextBox” columns. If the file does not exist, a default encryption key is used. The first 16 characters of the file, including any line break, are used. Shorter content is padded with characters of the default encryption key. Values encrypted earlier with a different key cannot be decrypted after the key is changed.
    • Details
      • The default encryption key is the same in all NET Genium installations, so without this file encryption protects the values only against viewing in NET Genium. Only the low byte of each character of the file is used, so the key should consist of ASCII characters only.
      • Only the first 8 characters of the file form the actual encryption key, the next 8 characters serve as the initialization vector. The values are encrypted with the DES algorithm with a 56-bit key.
  • ErrorLabel.txt – text that the “#errorlabel#” variable returns after the text “ERROR”. If the file does not exist or is empty, the variable contains an empty string. The same value that the variable returns is also appended to the subject of NET Genium system e-mails. A detailed description is provided in the separate guide [[variables Variables]].
  • ExecutionTimeout.txt – maximum request-processing time (in hours) that replaces the default limit of 5 hours (a smaller value shortens it), typically for long-running scripts. This influences the “executionTimeout” attribute in “Web.config”, which is set by “FinishUpdate.exe” after every update of NET Genium and by NET Genium itself at a restart from admin mode or with the password (see the [[#restart Restart]] chapter).
  • Framework.txt – automatically generated file containing the detected .NET Framework version configured in the IIS application pool.
  • GoogleTranslationApiKey.txt – API key for Google Translation API used for translating texts in the “RichTextBox” and “TextArea” controls with the “Wiki” or “Markdown” data type in an edit form, in the preview window of the “RichTextBox” control, in the “Details” panel of a view table, and in the translation of a “TextBox” control by the JavaScript function “tb_InitTranslate”. If the file does not exist or is empty, the translation icon is not displayed.
    • Details
      • The translation icon is never displayed to the anonymous user.
      • The function “tb_InitTranslate” has no icon – without a filled-in file and for the anonymous user, it returns an empty translation.
  • GoogleTranslationLanguages.txt – semicolon-separated list of two-letter language codes offered for translating texts. If the file does not exist or is empty, all languages installed in NET Genium are offered.
  • Holidays.txt – condition used to filter public-holiday records loaded into date pickers, into the name of today's public holiday in the portal header, into the marking of public holidays in the “Calendar”, “Planner” and “TimeTable” controls, and into functions such as “ADDDAYS” (with a non-zero “skipholidays” parameter), “ADDWORKDAYS”, “ADDWORKHOURS”, “MEASUREWORKDAYS”, “MEASUREWORKHOURS”, “jsMeasureWorkDays”, or “Date.addWorkDays”. Example: “ng_country = 'USERDETAILS(ng_countryforholidays)'”
  • License.txt – NET Genium license key. A detailed description of the license key is provided in the separate guide [[security-and-users#licensing-model Security and users]].
  • LoginByIdentity.txt – the presence of this file ensures that the NET Genium login window includes a checkbox enabling automatic user login through Windows Integrated Authentication, without the need to manually enter a username and password.
    • For this purpose, the user must exist in Active Directory, and the user’s domain account name must be filled in within NET Genium in the users table (“susers”) in the “Windows account” column (“account”). The account must be filled in for one user only – if more users have it, the login is refused. The account is compared by the database according to the collation of the column, so on a Firebird database with the default collation, which is case sensitive, it has to match the account verified by Windows including letter case.
    • The automatic login process performs only authentication, while authorization is handled by NET Genium – each user has an assigned list of user groups to which the user belongs.
    • Details
      • If the “LoginByIdentity.aspx” page does not log the user in (for example when the user's account is not found in NET Genium or the login is rejected by the check of allowed IP addresses), the next opening of the portal in the same browser session no longer attempts the automatic login and displays the login window. This does not apply when NET Genium requires cookies through the “DenyCookieless.txt” file. The automatic login is attempted again as soon as the user ticks the automatic login in the login window again. Unticking the box turns the automatic login off.
    • Along with creating the “LoginByIdentity.txt” file, it is necessary to configure the “LoginByIdentity.aspx” page in IIS so that it supports Windows Integrated Authentication. More details are provided in the separate guide [[installing-netgenium-web-server Installing NET Genium on the web server]].
  • LoginByMicrosoft.txt – the presence of this file ensures that the NET Genium login window includes a checkbox enabling automatic user login through Microsoft Integrated Authentication, without the need to manually enter a username and password. For this purpose, the user must exist in Azure Active Directory (Microsoft Entra ID), and the user’s email address must be filled in within NET Genium in the users table (“susers”) in the “Email” column (“email”), and only for one user. On a Firebird database with the default collation, the e-mail is compared including letter case. The automatic login process performs only user authentication, while authorization is handled by NET Genium – each user has an assigned list of user groups to which they belong. Along with creating the “LoginByMicrosoft.txt” file, NET Genium must be configured in the portal at “https://portal.azure.com”. More details are provided in the separate guide [[configuring-user-login-via-ms-entra Configuring user login via MS Entra]].
  • MaxExcelColumns.txt – maximum number of columns of a data export from a view table into the XLSX or XLS format. When it is exceeded, the export automatically switches to the CSV format. If the file does not exist or contains zero, the number of columns is not limited. A detailed description is provided in the separate guide [[datagrid-data-export DataGrid data export]].
  • MaxExcelRows.txt – maximum number of rows of a data export from a view table into the XLSX or XLS format. When it is exceeded, the export automatically switches to the CSV format. If the file does not exist or contains zero, the number of rows is not limited. A detailed description is provided in the separate guide [[datagrid-data-export DataGrid data export]].
  • MaxRequestCount.txt – maximum number of requests per second of the anonymous user (the built-in account in whose context anonymous web forms work) from a single IP address, which replaces the default limit of 100 requests per second – typically it increases the limit, but a smaller number decreases it. Zero, a negative number or invalid content means the default limit. For visitors who have not logged in, this limit (default or set) also multiplies the allowed volume of data per second, which is 50 MB for edit forms, pickers and file uploads (or the value from the “MaxRequestLength.txt” file) and 1 MB for other pages. Increasing it is relevant mainly for anonymous web forms, where all users work in the context of a single user who is not logged in. This limit also applies to every visitor who has not logged in yet, and all visitors who have not logged in from one IP address share it. Logged-in users have a fixed limit of 10 requests per second, which this file does not change. Both limits are counted separately for each kind of page – for example for edit forms, view pages including the main page with portlets, pickers, file uploads and the login page – and when they are exceeded, the message “Please wait, your request is in order...” is usually displayed instead of the page. The limits are counted by each process of the web application separately and a restart of NET Genium resets them.
  • MaxRequestLength.txt – maximum request size (in MB) that replaces the default limit of 50 MB (a smaller value lowers the limit), typically required for uploading large files using “File” and “Image” controls. The same value also sets the data volume per second that the overload protection allows for edit forms, pickers, and file uploads – it therefore limits the size of an uploaded file even when the “File” or “Image” control has a higher maximum size set. This affects “maxRequestLength” and “maxAllowedContentLength” in “Web.config”, which are set by “FinishUpdate.exe” after every update of NET Genium and by NET Genium itself at a restart from admin mode or with the password (see the [[#restart Restart]] chapter).
  • MaxSyncCount.txt – maximum number of records for one-time synchronization of all data in an edit form database table, which replaces the default limit of 10,000 records (a smaller value lowers the limit). Zero means the default limit. A detailed description of one-time synchronization is provided in the separate guide [[edit-form Edit form]].
    • Details
      • A negative value makes one-time synchronization impossible – the synchronization is always refused, even for an empty table.
  • MetaTags.txt – list of HTML tags inserted into every edit form inside the <head> section.
  • MicrosoftOAuth.json – configuration of user login via Microsoft (Microsoft Entra ID) in the JSON format. A detailed description is provided in the separate guide [[configuring-user-login-via-ms-entra Configuring user login via MS Entra]]. The file is also used by the “CRMService”, “InvoiceService” and “PaymentService” services for signing in to a mailbox via OAuth2.
  • NoFrames.txt – when this file exists, NET Genium runs in frameless mode – the header and navigation area become part of each page’s HTML.
  • NoScript.txt – text message inserted inside <noscript> in every edit form, view page, picker and configuration dialog and in the page with portlets, displayed to users with JavaScript disabled. Example:
    “Dear users,
    Your browser unfortunately does not support JavaScript, which is required to display these pages correctly.
    Please enable it.
    Thank you.”
  • OCRServer.txt – URL of a remote NET Genium instance providing OCR services. The address is returned by the “#ocrserver#” variable. NET Genium itself does not use it anywhere – it applies only when the variable is passed to the “OCR2TEXT”, “OCR2HTML” or “OCR2FILE” function as the “url” parameter, e.g. “OCR2TEXT(#ng_attachment#, #ocrserver#)”.
  • PublicDirectory.txt – path to a public directory on the server from which the “File” control in an edit form offers the files of the record's directory through the “Browse Cloud” option. When the file is filled in, the toolbar of the edit form also shows the “Cloud...” icon, which opens the content of the record's directory. The icon is not shown in NET Genium Online, to the anonymous user, on a mobile device, in an edit form whose “Notes” field contains “DISABLEPAGETOOLS()”, or in user mode in an edit form that displays priority HTML code (an HTML control with the “Priority HTML code placed in front of the form” check box selected). A detailed description is provided in the separate guide [[edit-form-file Edit form – File]].
  • RequestHeaders.txt – lines in the format “key: value”, of which NET Genium uses only the line with the “IP” key: its value is the name of the forwarding header from which the client IP address behind a reverse proxy is read, and the value “?” turns off the check against the “IP addresses allowed” list. A detailed description is provided in the separate guide [[installing-netgenium-web-server#client-ip-behind-proxy Installing NET Genium on the web server]].
  • ResponseHeaders.txt – list of HTTP headers (one per line, format “key: value”) added automatically to the responses of NET Genium web pages.
    • Details
      • When the “Content-Security-Policy” header contains a “script-src” directive terminated by a semicolon, NET Genium adds the “'unsafe-eval'” value to it for users with administrator privileges and in the dialogs in which a user customizes controls (for example a view table), unless the directive already contains it. A “script-src” directive without a semicolon at its end is not changed.
      • Regardless of this file, NET Genium sends the “Cache-Control: no-store, no-cache, must-revalidate”, “X-Content-Type-Options: nosniff” and “X-Frame-Options” (see “XFrameOptions.txt”) headers with its web pages, and additionally “X-XSS-Protection: 0” to users with administrator privileges. It sends the “Strict-Transport-Security: max-age=31536000; includeSubDomains; preload” header over an HTTPS connection, when the “SecureCookies.txt” file exists, and when the “SSL.txt” file exists without content or with an address starting with “https://” – except for requests from the IP address “127.0.0.1”. It removes the “Server” header from the response.
      • The headers from the “ResponseHeaders.txt” file are added to the headers listed above and do not replace them – a header of the same name from the file is sent next to the built-in one, so the response carries both values.
      • The body of an e-mail message displayed from the “Email” control on a view page and the embedded parts of the message (for example images in the text) receive only the “X-Frame-Options” and “X-Content-Type-Options” headers listed above and do not receive the headers from the “ResponseHeaders.txt” file – they are displayed with their own content isolation (“Content-Security-Policy: sandbox”), which a “Content-Security-Policy” header from the file would add to.
  • SecureCookies.txt – when this file exists, every cookie is assigned the “Secure” attribute. Use this only when SSL termination happens on a firewall (e.g., F5). When SSL is terminated in IIS, this file is not needed.
  • SessionTimeout.txt – session timeout in minutes after which inactive users are automatically logged out (default 480 minutes, but regardless of this length a sign-in in the web browser ends 24 hours after signing in at the latest, so a value above 1440 minutes has no effect in the browser – except for a user authenticated by the web server (for example by integrated Windows authentication or a client certificate) with an account matching their “Windows account” field). It takes effect only after an update or a restart of NET Genium (see the [[#restart Restart]] chapter) rewrites the “Web.config” file. A return to the default value or deleting the file is, however, not applied to the “Web.config” file by a restart, only by an update of NET Genium.
  • SingleLogin.txt – when this file exists, a user may have only one active session of each kind. Older sessions of the same kind are automatically logged out. There are two kinds of login: an interactive login in the web browser, and all other logins together, for example a login with a token through the integrated MCP server, through the web services of the “NETGeniumConnection” library and a Windows login from an address with the “autologin” parameter. A service connected through the “NETGeniumConnection” library and the integrated MCP server therefore log each other out when they use the same account. A login with an address containing a login ticket and an automatic login through Microsoft, Google or Apereo count as an interactive login in the web browser.
  • SimpleClick.txt – when this file exists, records in view tables open with a single click instead of the default double click. If a view table has the display of details turned on, a single click displays the details of the record and the record is opened by double-clicking or by the link at the beginning of the row.
  • SkipResendEmlFiles.txt – when this file exists, NET Genium is excluded from processing by the “ResendEmlFiles.exe” program run with the “ngdirs” or “ngdir” parameter (the content of the file does not matter). A detailed description of the program is provided in the separate guide [[utilities Utilities]].
  • SkipUpdate.txt – when this file exists, NET Genium is excluded from the bulk update by the “Update.exe” program (the content of the file does not matter). A detailed description of the bulk update is provided in the separate guide [[utilities Utilities]].
  • SSL.txt – when this file exists, all HTTP requests are automatically redirected to HTTPS. Requests from the IP address “127.0.0.1” are not redirected. The content of the file adjusts the redirection:
    • an empty file or content other than the values below – an HTTP request is redirected to the same address over HTTPS,
    • a URL starting with “https://” – an HTTP request is redirected to this URL, and so is an HTTPS request whose address does not start with it,
    • a URL starting with “http://” – an HTTP request is not redirected and an HTTPS request is redirected to this URL,
    • “auto” – redirection is turned off completely,
    • “http” – the file behaves as if it did not exist.
    • Details
      • The content of the file is compared literally, so the value must not end with a line break.
  • SysLog.txt – IP addresses or names of SysLog servers, optionally with a port (separated by semicolons), to which log messages will be sent. See the [[#logging Logging]] chapter.
  • Tester.txt – when this file exists, “Update.exe” downloads testing versions of NET Genium intended for partners and developers. These versions may contain bugs or be unstable.
  • UnderConstruction.txt – when this file exists, the web application becomes unavailable, and all requests are redirected to “UnderConstruction.aspx”. The file may optionally contain a custom message. The message may contain HTML code, and a file with a whole HTML page is displayed as a separate page without the message frame and the “Try again” link. With this file, NET Genium does not connect to the database when it starts, so it does not update the database after an update to a new version. The initialization including the database update is completed only by the first request after the file is deleted.
    • Details
      • Content with the “<html” or “<HTML” tag is considered a whole HTML page. Other content is inserted into the message frame and line breaks are displayed as line breaks.
      • The redirection does not apply to the web page for restarting NET Genium and to several system pages that do not need the database (for example the error page). The web services of NET Genium (for example for synchronization and for connecting the “NETGeniumConnection” library through web services) respond with the text “UnderConstructionException” instead of the redirection. The “api.aspx” page (the integrated MCP server as well as the API information page) and the sign-in endpoints “OAuthToken.aspx” and “OAuthRegister.aspx” respond with the same text and the HTTP 503 status code.
  • UnderConstruction2.txt – similar to the above, but only users with administrator rights can log in. All other users, including those already logged in, are redirected to “UnderConstruction2.aspx” when they open or submit an edit form, a view page or the main page with portlets. The restriction does not apply to the anonymous user – edit forms and view pages made accessible to the anonymous user remain available. A custom message may be included, and the same applies to it as to the “UnderConstruction.txt” file.
    • Details
      • Other requests of logged-in users are not refused by the file – typically requests of a page opened before the file was created: saving values with the “form_Save”, “control_Save” and “controls_Save” functions, data import, uploading a file and calling an external function from JavaScript.
  • UpdateArchive.txt – definition of the records archived by the “SqlBackup.exe” program run with the “/updatearchive” parameter. A detailed description is provided in the separate guide [[utilities Utilities]].
  • Version.txt – the current version number of NET Genium.
  • XFrameOptions.txt – value of the “X-Frame-Options” header inserted into the responses of NET Genium web pages. This header tells the web browser whether a web page may be displayed in a frame.
    • Without this file, or when it is empty, the header has the value “sameorigin” – NET Genium pages can be displayed in a frame only on a web page of the same origin (the same scheme, host and port).
    • The value “*” omits the header and thus allows framing from other domains as well. Any other value is inserted into the header unchanged.
    • Details
      • The pages for downloading a file, an image and a document and the consent screen of connecting an AI tool by signing in always send the header with the value “deny”.

5. File attachments

  • File attachments are stored on disk in the “Files” directory. Each file attachment has its original filename stored in the database in the “sfiles” table, while the actual file on disk is saved under a modified filename. The filename on disk (without extension) is defined as the ID of the file - attachment record in the “sfiles” table, and the file extension is preserved. For example, the first file attachment stored in NET Genium may appear as “1.pdf”.
  • File attachments are created by uploading a file using the “File” or “Image” controls in an edit form, by creating a file attachment through a server function in a script, and similar mechanisms.
  • The file-attachments directory can be redirected to a different location on disk using a configuration file named “Files” (without extension), which is stored directly inside the “Files” directory in the same way as other file attachments. The content of the “Files” configuration file defines the disk path to the alternative directory where file attachments should be stored.

[[Kotva:logging]]

6. Logging

6.1. Incident logging

  • Incident logging is handled by two primary operations:
    • Saving log messages to files on disk in the “NETGenium\Logs” directory
    • Sending log messages to a “SysLog” server

6.1.1. Log files

  • Log messages are stored in the “NETGenium\Logs” directory, among others in the following files:
    • AI-year-month.log – List of changes of the implementation model written via web services or the integrated MCP server, and of errors when uploading them
    • Auth-year-month.log – List of successful and unsuccessful logins and logouts
    • Data-year-month.log – List of database queries whose result loaded into a table had more than a million rows (queries that modify data are not written), or whose memory consumption exceeded 1GB
    • Download-year-month.log – List of downloaded files
    • Errors.log – List of errors that occurred during user activity. Some errors are intentionally not written to it, typically query timeouts (“Execution Timeout Expired.”) and deadlocks (“deadlock”), and for users without administrator privileges also MS SQL Server errors that NET Genium does not evaluate as serious. Unhandled page errors are not subject to this restriction
    • Export-year-month.log – List of user-exported data
    • FinishUpdate.log – List of files that could not be overwritten or deleted during application updates
    • Fulltext-year-month.log – List of errors during full-text searching in the database and in file attachments
    • Google-year-month.log – List of errors when calling the Google services for geocoding addresses and translating texts
    • Install.log – Records of the “Setup.exe” program: the result of setting the permissions to the NET Genium directory and to the MS SQL database, failed attempts to connect to MS SQL Server when no connection succeeds, errors when creating the database and errors when working with the IIS configuration
    • Install-year-month.log – List of errors when loading the “Administrator” account from the “Config\Administrator.xml” file while the system users of a new database are created
    • MultiTableApplication-year-month.log – List of warnings when creating an application with the “AI-generated application” wizard: errors when proposing the names of view pages, view tables and buttons, foreign keys to a non-existent table created as a TextBox control, failures of AI when proposing sample records and sample records that could not be inserted. An error when proposing or processing the structure of the application that prevents the application from being created is written to “Errors.log”
    • Push-year-month.log – List of results of sending notifications to a mobile phone
    • ResendEmlFiles-year-month.log – List of SMTP communication commands executed when attempting to resend email messages queued on disk (in the “NETGenium\SMTP” directory)
    • RunningTasks.log – List of tasks that were running at the moment the application ended
    • RunningTasks-process ID.log – List of the currently running tasks of the process when the “Measure memory consumption” option is enabled
    • RunScript-year-month.log – List of scripts executed through the “RunScript.exe” application
    • Scripts60sec-year-month.log – List of the scripts of buttons run by a click, the scripts of the “File” control when a document is created from a template and the scripts of a new record from the “Planner” and “TimeTable” controls whose processing took 60 seconds or longer
    • SMTP-year-month.log – List of successfully and unsuccessfully sent emails
    • Synchro-year-month.log – Progress of sending the synchronization queue and its errors
    • System.log – List of messages about the start and end of the application (often associated with application-pool starts or restarts), about the license key and the MAC address of the server and about failed connections to the database, and the “CREATE”, “ALTER” and “DROP” SQL commands by which NET Genium changed the database structure when applications were modified (for example when a form or a control was saved)
    • Update.log – List of errors of the update by the “Update.exe” program run with the “-j” parameter, and with logging set to “To disk” or “To database and disk” also the progress of the manual update and of the update with the “-j” parameter
    • Version.log – List of SQL commands by which NET Genium modified the database at startup – when moving to a new version changes of the structure as well as of data, at a start without a version change for example adding public holidays. The header of the record states the original and the new version
    • Warnings.log – List of warnings
    • yyyy-MM-dd.log – Daily log of messages that have no log file of their own, for example messages of external functions
  • With the logging set to “To disk” or “To database and disk”, subdirectories named after the login name of the user are created in the “NETGenium\Logs” directory, and in them subdirectories named after the date (yyyy-MM-dd) with the logs of the individual users, for example with the “stables_stats.log”, “sviewpages_stats.log” and “squerybuilder_stats.log” files containing statistics of edit forms, view pages and database queries. The detailed course of a login through Microsoft, Google, Facebook or Apereo (the “loginbymicrosoft.log” file and similar) is written to the subdirectory of the user in whose session the login takes place: for a login to NET Genium to the subdirectory of the anonymous user, for obtaining a token with the “loginByMicrosoft”, “loginByGoogle” and “loginByFacebook” JavaScript functions to the subdirectory of the logged-in user.
  • The log-file directory can be redirected to another location on disk using a configuration file named “Logs” (without extension), which is stored directly inside the directory of the same name, in the same way as other log files. The content of the “Logs” file defines the disk path to the alternative directory where log files should be stored.
  • Details
    • Log files with a year between hyphens in their name (for example the monthly “SMTP-year-month.log” logs) are packed by “ResendEmlFiles.exe”, for years that ended more than a month ago, into ZIP archives by the log name and the year (for example the files “SMTP-2025-01.log” to “SMTP-2025-12.log” into the archive “SMTP-2025.zip”) in the same directory, and the original files are deleted. A detailed description is provided in the separate guide [[utilities Utilities]].

6.1.2. SysLog

  • Sending log messages can be configured for multiple SysLog servers simultaneously. The configuration is done using the “SysLog.txt” file located in the “NETGenium\Config” directory.
  • If the “SysLog.txt” configuration file exists and contains one SysLog server IP address or name or several SysLog server IP addresses or names separated by semicolons, log messages will be automatically sent to the specified SysLog servers and stored in the “NETGenium\Logs” directory.
    • A port can be specified after the IP address or the server name, separated by a colon (for example “10.0.0.5:1514”). Without a port, port 514 is used. The messages are sent over the UDP protocol.
    • The SysLog servers receive, for example, the messages of the “Auth”, “Errors”, “System” and “Warnings” logs and of the daily log “yyyy-MM-dd.log”.
    • Some logs, for example “Download”, “Export”, “RunScript”, “SMTP” and “Synchro”, are stored only in files in the “NETGenium\Logs” directory and are not sent to the SysLog servers.
    • Details
      • The text of the messages is sent in ASCII encoding, so characters with diacritics are replaced with a question mark.
      • A change of the “SysLog.txt” file takes effect only after NET Genium is restarted.
  • If the “SysLog.txt” configuration file is not present, logging is performed only into the files located in the “NETGenium\Logs” directory.
  • Messages sent to a SysLog server use the following format, with space as the separator between values: “date time server_domain_name application category event_type user_login_name user_ip_address message”
    • Category – the name of the log, for example Auth, Errors or System. For some logs, for example “AI”, “Data” and the daily log, the category corresponds to the event type (System, Warnings or Errors)
    • Event type – VERBOSE, NOTICE, WARNING, ERROR, FATAL

6.2. Web application performance logging

  • NET Genium logs the following events into the database:
    • Loading speed of edit forms – into the database table “stables_stats”
    • Loading speed of view pages – into the database table “sviewpages_stats”
    • Database query performance – into the database table “squerybuilder_stats”
    • External function performance – into the database table “sngef_stats”
    • Script performance – into the database table “sngscript_stats”
  • Enabling or disabling logging is done in a dedicated dialog under “Modify NET Genium” on the “Other” tab:
    • Off – logging is turned off
    • To database – logging is performed only into the database
    • To disk – logging is performed only to disk in the “Logs” directory
    • To database and disk – logging is performed both into the database and to disk in the “Logs” directory
  • Aggregated statistics generated from database-logged events can be viewed using reports. More details are provided in the separate guide [[reports Reports]].
  • The log tables keep growing until old records are deleted from them. The deletion is performed by the “SqlBackup.exe” program run with the “/deletelogs” parameter – for regular cleanup as a scheduled Windows task, see the [[utilities Utilities]] guide. In addition, the “BackupServer.exe” program deletes records older than 1 month before backing up each database, see the [[server-backup-and-restore Server backup and restore]] guide.