Sharperlight Services
Sharperlight has an API Service that remote clients connect to and access datamodels, and it has a REST Web Service for surfacing published queries and dashboards. Collectively they are referred to as the Sharperlight Web Service and they are run in tandem by the same application. There are two distinct methods for initialising the Service, there is a Manual Service which displays a runtime dialog and a Windows Service that logs messages to the Windows Event Log. The Manual Service is used in testing and standalone development environments whilst the Windows Service should always be used for production environments. The key differentiator between the two Services is that the Windows Service is normally configured to auto start on server reboot.
For most production installations of Sharperlight, the client computers connect to a centralized application server which hosts a Sharperlight Service. This Service gives end-users access to datamodels and Sharperlight web content. The Client Setup screen has a Services section for configuring the active service. Three services can be configured but only one service can be running at a time.
Instance Management will allow multiple Sharperlight Services to be configured and run on the same computer host.
Fuzzy logic is used to determine which one of the three services are made active. If none of the services are enabled then the first service configuration will be loaded but if more than one service is enabled, then the first service code in alphabetical order will be used.

The Service Details pane in Client Setup allows full control of the description, security, communication and email settings. The Service Details are explained in detail below.
Connection
- Enable
When a Service is enabled it can then be accessed using the Remote Connection settings on the Clients. The Service provides data to Remote Clients running the Query Builder, Excel, Explorer and also to the Web Channel browser reports. Services accessed over the internet should use Http or Https while Local Networks can use Tcp or http. To successfully connect to a Service the ports first must be opened in the Firewall and forwarded correctly on the Router.
Attributes
- Code
Unique short code to identify this Service. - Description
Service description. This description will appear on the Clients once they have connected to the Service. - Password
Password protect the Service. This is optional and if set all Clients will require this password on their Remote Connection details to gain access.
Connection Details
- Protocol
The Communications Protocol Tcp, Http or Https. Use Https when exposing private data on the Internet as it’s the most secure. Also ensure that an SSL Certificate is bound to the selected ports (Setup in IIS) and Port Forwarding has been confirured on the Router. When using Http or Https you can leave the ports blank and they will default to the standard port settings of 80 or 443. Tcp can be up to 40% faster than Http/Https and is a good option for Intranets. - Port Number
API Service Port number eg 4001 or blank. This port is accessed by the Remote Clients such as Excel, Query Builder and Explorer. Remember to unblock the selected port on the Firewall. When exposing the Service to the Internet, remember to setup port forwarding on the router. If port 80 or 443 is selected and it’s also being used by IIS, remember to turn on Windows Process Activation Service to enable port sharing. If the port is left blank it will default to 80 when Http and 443 when Https. - Web Channel Port No
Web Channel RESTful Service Port Number eg. 80, 443 or 8080. This port is used when accessing Published reports and web based material over the Internet or Intranet. This port can be the same as the main port and if left blank will usually default to port 80 for http or 443 for https. The External Base Address should be completed if you are expecting to use the Service over the Internet. If port 80 or 443 is selected and it’s also being used by IIS, remember to turn on Windows Process Activation Service to enable port sharing. - Service Code
Unique Service Code to identify the Service eg. mdService1 This Service Code becomes part of the address of the Service. For example the Web Channel becomes http://localhost/mdService1Rest/Index. - Connection Timeout
Connection timeout in seconds when sending or receiving data. 0=Use Default (1800 seconds), normally 1800 seconds (30 mins) is enough but when dealing with long running queries and tasks, increase the timeout to 2700 (45 mins) or 3600 (1 hour). The same will need to be done on the Client’s Remote Connection ‘Connection Timeout’.
HTTPS – Certificate
- Certificate Type
If using HTTPS then set the Certificate Type (ThumbPrint or Subject). The type determines how the certificate is searched for. If your using Windows IIS (Internet Information Services) to handle the certificate binding then set to ‘None’. - Certificate
Based on the selected Certificate Type (ThumbPrint or Subject) find and apply the matching certificate which is essential for HTTPS. If blank or the Certificate Type is ‘None’ then bind the certificate using Windows IIS (Internet Information Services) If a matching certificate is not found then an error will appear in the Window Event Log or use Sharperlight Health Check. Can be left blank if using HTTP or TCP. Note a ThumbPrint will look something like ‘12345cda10d1a6e6e3b6d4cfd74e4fccd77adef5’ and a subject will look like ‘*.mydomain.com’.
Service URL
- External Base Address URL
External Base address. eg. www.yourCompany.com or the public static IP address 123.0.0.81 If you are exposing the Service to the Internet this information is required. If left blank the Service will only be accessible from the Intranet. For combined Internet and Intranet access to the Service special setup to redirect the public namespace to the internal IP address is required. - External Proxy Address URL
External proxy final address. eg. https://www.yourCompany.com. Normally this is left blank, but in advanced proxy setups the protocol and port may be different to the service setup on the other side of the DMZ due to the proxy redirection. For example internally the service may be using http://my.company.com:8080 but externally after going through a proxy it may be redirected to https://my.company.com. In this example you would set this property to https://my.company.com. If however http is used all the way through and port forwarding is used from say 8080 to 80, set this property to http://my.company.com:8080 which means externally it’s port 8080 but it’s port forwarded to port 80.
Security
- Authentication
Authentication mode allows you to switch between mixed Sharperlight Accounts and solely Windows Authentication. Mode Default will use mixed authentication while Basic, Windows and NTLM will all force the User to login with their Windows Domain Account before any web content is displayed. Basic should only be used on secure Intranets while NTLM is recommended for public access as it’s secure and handle’s best when on non-Windows platforms. - Security Level
Levels are Low, Normal, Medium, High, and Very Strict
Further secure access to the Service Index Page, Dashboards and functionality by setting the level above Normal. Consider setting to level Medium or higher when exposing the Service to the Internet. This will restrict access to various functionally if not otherwise specified in Site Setup. For example, Level Normal to Medium will show the Web Channel Help and the Index after a Sign In. Level High will remove all access to the Index related pages but still allows Dashboard development. Level Very Strict will lock down all Index related pages, including Help. Level Normal and above will always restrict internal folder access unless otherwise specified in Site Setup/Product Settings/System. If users are developing reports via the web, set to Level Medium. Set to Level Very Strict to basically only allow the viewing of predefined web content so development must be done using the rich client Publisher. Note that public web sites should always use https and also consider enabling 2FA authentication for user sign on. Note a Low setting will allow the published report and dashpages lists to be view without sign on but running the reports still requires a sign-in unless set as public. - Remember Me Expiry Days
How many days the Web Channel sign-in option ‘Remember me’ keeps a user signed in on that browser, counted from the day they sign in (no sliding window). 1 to 365, default 90. Set 0 to turn ‘Remember me’ off so the sign-in only lasts for the browser session. The MCP OAuth refresh token uses the same number of days. Shorten it for tighter security. - Active Directory – Default Domain
Allow users to omit the Active Directory domain name when signing in with their AD user account details. For example instead of MYDOMAIN\finance they can just sign in as just finance. Enter the default AD domain name to use. e.g. MyDomain or MyDomain.com.au. - Active Directory – Alias Defaults
Map User sign-ins based on their alias to their Active Directory domain account. For example, YourDOMAIN@company.com;YourDOMAIN@company.com.uk would map a sign-in of john@company.com.uk to a Site Setup User YourDOMAIN\john internaly. Set YourDOMAIN to whatever the AD Domain name is e.g AbcCo. - Web – Access Control Allow Origin
Set the Web Channel response header ‘Access-Control-Allow-Origin’ which indicates whether the response can be shared with requesting code from the given origin. Setting to * tells the browser to allow code from any origin to access a resource. Leave blank if you want to only trust the current domain.
The Service can be run from the desktop using the Manual Service shortcut in the Sharperlight program folder and this is appropriate for datamodel developers and people who are testing Sharperlight. For production environments, it is better to initiate the Sharperlight Service using the Windows Service item that was added during the Sharperlight installation. The advantage of running it under a Windows Service is that the Sharperlight Service can be automatically started if the server reboots.

See also Windows Service

