HRPro.config Settings
HRPro.config is the configuration file for storing site-specific information, such as SQL Server connection details and SMTP server settings. HRPro now prioritizes the settings in HRPro.config over those in Web.config, making HRPro.config a static file that remains on the customer site, effectively ignoring the settings in Web.config.
Minimal HRPro.config settings
data source - the SQL server instance name (If you prefer using IP address as the data source, please use the syntax something like that
<add key="data source" value="tcp:192.168.0.1,1433"/>)
initial catalog - the HRPro Application database name
user id - the SQL server User ID
password - the SQL server password for user id (see How to enable SQL Server Password Encryption in order to encrypt the password)
Completed HRPro.config settings
The completed HRPro.config settings of your version can be found in HRPro.full.config inside the App_Data folder of your web site.
You only need to include the keys you require in HRPro.config. If a key is missing, the system will use its default setting.
IsSingleCompanyLogin: If set to true, the company selection combo box during login will be disabled. See How to Enable Single Company Login?
PDFReportUseFontFile: If set to true, it supports exporting PDF with Chinese characters without needing Arial Unicode MS installed on the server. See Why all Chinese Characters on the PDF report are displayed as rectangular boxes in HRPro Web Client/EPortal?
CompanyLogoURL: This is a URL, not a physical path. (e.g., if the value is \Mylogo.png, it usually refers to C:\inetpub\wwwroot\Mylogo.png).
Login Notification Settings: Includes LoginNotificationSubject, LoginNotificationHeading, LoginNotificationStyle, LoginNotificationContent1, LoginNotificationContent2, and LoginNotificationClosing. These are used when Enable Login Email Notification in Personal Options is turned on.
SMTP Timeout: Sets the timeout duration for network streaming operations, in milliseconds. This means it determines how long HRPro will wait for a response from the SMTP server before giving up and throwing a timeout exception. By default, HRPro will wait up to 10 seconds for a response before timing out.
SMTP Send Wait: Defines the delay (in seconds) between sending each email (e.g., Pay Slip) to overcome the throttling limitations of some SMTP servers.
SessionTimeOut: Number of minutes before a session times out due to inactivity. The default is 600 minutes (10 hours). If the user does not refresh or request a page within this period, the session will end and return to the login page.
AllowSimultaneouslyLogin: If set to true, the same User ID can log in to multiple devices/browsers simultaneously. It is not recommended as it may produce unpredictable results if both devices/browsers operate the same function at the same time. (Effective only if the database is licensed as a Company license or a Server license).
SimultaneousLoginIdleMinutes: Number of minutes required to wait before the same User ID can log in to another device/browser if another logged-in session is inactive. Applicable to both HRPro and EPortal.
For database specific settings, you can put the database name in front of the Key and separated with a space, e.g
<add key="dbHRPro CompanyLogoURL" ...>
You may have a permission issue when you save the edited HRPro.config using Notepad. You can either
Save to desktop and copy back to the original location
Search Notepad, right click and select run as administrator and then open the file using the file open dialogue.
It is recommended to either recycle the Application Pool, restart IIS or restart the server after HRPro.config is amended.