Running the nGenue application¶
In the previous article, we successfully restored a database in Microsoft SQL Server Management Studio (SSMS). The next critical step is to configure the nGenue application by deploying the nGenue executable (.exe) and updating the configuration (.ini) files. This setup ensures that the application can communicate with the restored database and store logs and generated documents in the correct locations.
Proper configuration is essential to prevent runtime errors and misconfigurations.
Prerequisites¶
Before starting, ensure the following:
- The nGenue team has shared the
nGenue.ini
andnGenue.exe
files in the user's designated SharePoint location or shared folder. - The shared folder should have both read and write permissions for all intended users.
- Administrative access is required to update application settings.
- Confirm that the SQL Server database is restored and accessible.
Process steps¶
1. Download and place nGenue configuration files¶
- Access the shared folder provided by the nGenue team.
- Download the
nGenue.exe
andnGenue.ini
files. - Place both files in the same directory on either the application server or a common shared location.
- Ensure that both files have identical base names. For example,
nGenue.exe
andnGenue.ini
.
2. Create necessary subfolders¶
-
In the shared folder or the directory where the executable is placed, create two subfolders:
- Documents This will be the root folder where the application will store generated PDF reports.
- Logs: This will hold all application log files.
-
Double-check that all users have read and write access to both Documents and Logs folders.
3. Verify SQL Server roles¶
- Run SQL Server Management Studio (SSMS).
- Connect to the server and access the restored database.
- In the Object Explorer window, go to Security and expand Logins.
- Double click sa to open the Login Properties window.
- In the User Mapping screen, verify the following database role permissions are checked. Assign these roles if they are missing to avoid authorization errors.
- Click OK.
3.1 Users and permissions¶
To allow specific users to access the database, you'll need to create a login for your user and give the necessary authorization permissions.
- In the Object Explorer window, go to Security > Logins.
- Right click on Logins and select New Login...
-
On the General page, enter the user's login name (for example: HRDBLogin), select SQL Server authentication, type a password and confirm it, and keep the following items checked:
-
In the User Mapping screen, select the database, and assign the necessary permissions.
- Click OK.
4. Configure the database connection¶
- Open the
nGenue.ini
file using a text editor (Notepad or Notepad++ recommended). -
Update these key parameters:
-
Save and close the
nGenue.ini
file.
5. Update Global settings in nGenue¶
- Run the
ngenue.exe
executable file to launch the nGenue application. - Search for Global Settings and navigate to Global settings > File management.
- Update the folder paths to point to the shared locations created:
- Root PDF document storage folder:
<SharedFolderPath>\Documents
- Default log folder:
<SharedFolderPath>\Logs
- Root PDF document storage folder:
- Save the settings to ensure all documents and logs are stored in the correct directories.
6. Final verification¶
- Confirm that both
nGenue.exe
andnGenue.ini
reside in the same folder and share the same base name. - Ensure the location is accessible to all intended users and properly secured.
- Launch the nGenue application and ensure it connects to the database without issue
- Test by generating a document to verify that the PDF is saved in the Documents folder.
- Check the Logs folder to confirm that log entries are being created as expected.