This page describes the following:
- Configure the ExamService Service
- Installation of ExamService Windows service
- Install the ExamService
- Start the ExamService
Configure the ExamService Service
|Configure the ExamService Service|
It is important to ensure that all the values in the config files such as service name, URLs, username, and password are case-sensitive. ExamDeveloper may not run as expected if care is not taken to ensure that case sensitivity is maintained.
Create a folder where you want to install ExamService, such as C:\EDEXS\ExamDeveloper\ (henceforth known as <EDEXSinstallDir>) and copy all the contents of <SVNFolder>\Exam\ (or <SVNFolder>\ExamService\) to this folder. In case of ExamDeveloper version 7.1610, the <SVNFolder>\ExamService\ folder contains a ZIP file ExamService.zip, please extract it to <EDEXSinstallDir> while ensuring that the folder structure within the archive is recreated.
Open the various configuration files for ExamService located in C:\EDEXS\ExamDeveloper\configs (<EDEXSinstallDir>\configs\) - appSettings.config, connectionStrings.config, and log4net.config - with Notepad or a suitable text file editor.
In the appSettings.config, enter a unique name and unique display name for the ExamService service, which is to be created and run on the application server.
UniqueExamServiceName and UniqueExamServiceDisplayName are the unique name and display name given to the ExamService service. These names needs to be unique per install and should not contain any space.
In the appSettings.config, ensure that the values of the keys "basicAuthUserName" and "basicAuthPassword" match the values in ExamDeveloper httpClients.config of the keys "userName" and "password" respectively for the line with httpClientConfig name "ExamSection" as in step 11 of Configure ExamDeveloper.
If a line with the key "useSsl" exists, set the value to "true" as follows:
If a line with the key "relativeUri" exists, set the value to "UniqueExamServiceName" as follows:
where UniqueExamServiceName is the name the ExamService service.
In the connectionStrings.config, update connection string value to match the value from the EDRS connectionStrings.config file as in step 2.a of EDRS Installation and Configuration.
Step 8 is applicable only for ExamDeveloper version 7.1612 and above.
In the massTransit.config file, update the values to match the corresponding values from massTransit.config of EDRS as detailed in step 2.c of EDRS Installation and Configuration. This means that the name of the Virtual Host ExamDeveloper created in Create and configure RabbitMQ Virtual Host section of the RabbitMQ Setup and Configuration page, should be appended to the massTransit/host/rabbit@hostAddress attribute, which is rabbitmq://localhost/ExamDeveloper in our example. The username and password must match the RabbitMQ user (having access to the Virtual Host ExamDeveloper), created in the Create a RabbitMQ user for EDRS section of the RabbitMQ Setup and Configuration page, which in our example are ExamDeveloper and Password respectively.
|If RabbitMQ is installed on a separate server, then you must substitute "localhost" with the hostname of that server. If RabbitMQ-URL is the server hostname where RabbitMQ is installed, then the line becomes:|
<rabbit hostAddress="rabbitmq://RabbitMQ-URL/ExamDeveloper" username="ExamDeveloper" password="Password"/>
It is extremely important that the same RabbitMQ Virtual Host name should not be shared between different instances of ExamDeveloper, as this can result in issues such as data loss and security breach.
It is important to ensure that the RabbitMQ Virtual Host name, username, and password are case-sensitive. You will encounter an error while trying to log into ExamDeveloper if care is not taken to ensure that both are specified exactly as they are in the new RabbitMQ Virtual Host and user setup for this instance of the ExamDeveloper application.
Update the values in the <log4net> section of the log4net.config file as shown below to indicate the path where the log file for ExamService service is to be located.
By default, the log file ExamService.log is saved to the User service folder (C:\EDEXS\ExamDeveloper\ in our example). You can specify a different path to save it by modifying the value to something like "C:\ExamDeveloperData\Logs\ExamService\ExamService.log" as shown above.
Installation of ExamService Windows service
|Installation of ExamService Windows service|
Install the ExamService Service
|Install the ExamService Service|
Open an Administrator command prompt and run the following command:
netsh http add urlacl url=https://+:443/UniqueExamServiceName user=Everyone
where UniqueExamServiceName is the name of the ExamService service.
If you get an error stating "Url reservation add failed" on running the above command, please ignore it as it means that this has already been taken care of.
Open an Administrator command prompt (click the Start button, type "command" in the search box, right click Command Prompt in the search results that appear, and click Run as administrator from the context menu) and navigate to <EDEXSinstallDir>.
Run the following command:
ExamService.exe install --sudo --localservice
Here, ExamService.exe is the name of the ExamService service executable file. This file may be available with any other name in the format [ApplicationName].exe.
Start ExamService Service
|Start ExamService Service|
- Once the service is installed successfully, to start ExamService service, open the Administrator command prompt.
- Navigate to <EDEXSinstallDir> and run the following command:
The installed service runs in the default Local Service account. If the service does not start, inspect the Windows application logs to understand the reason.
|title||Ensure that the ExamService service is running|
Ensure that the ExamService service is running in the following way:
- Run "services.msc" (click Start → Run or Windows + R keys together, type "services.msc" in the Run dialog box, and click OK). Ensure that the Status for the ExamService service instance shows as Started and the Startup Type is Automatic.
- If you don't see the status as mentioned in step 1, then right-click the ExamService service instance name in the list, which should appear as UniqueExamServiceDisplayName, and click Properties to open its properties window.
- Select Automatic from the Startup type drop-down and click the Start button under Service status.
- This starts the ExamService service and sets it to start automatically at Windows startup.
|title||If you need to stop or uninstall the ExamService service, click here to learn how...|
If you need to stop or uninstall the ExamService service, you need to follow the following steps.
Stop ExamService service
Open the Administrator command prompt and navigate to <EDEXSinstallDir>.
To stop installed service, run the following command:
Uninstall ExamService service
Open the Administrator command prompt and navigate to <EDEXSinstallDir>.
First stop the service by running the following command:
To uninstall the service, run command:
ExamService.exe uninstall --sudo --localservice
Please visit ExamService Configuration Settings to learn more about the various settings mentioned above.
Return to the top of the page
Set up ItemBank service for single instance of ExamDeveloper