Recommend model Failed with error message “The underlying connection was closed: An unexpected error occurred on a receive”.

Table 1. Recommend model Failed with error message “The underlying connection was closed: An unexpected error occurred on a receive”
Issue Description Recommend model Failed with error message “The underlying connection was closed: An unexpected error occurred on a receive"
Module Impacted iRecommend
Probable Root Cause

The build model will fail if the 'threadstacksize' lines are not found in the .conf files in apache.

Figure 1. Recommend model Failed with error message “The underlying connection was closed: An unexpected error occurred on a receive"

Resolution Steps:

  1. Check for existence of the .conf files Recommend.conf at location <Apache_Root_Folder_Path>/conf.
  2. For Example - “C:/Apache24/conf” has <Apache_Root_Folder_Path> as “C:/Apache24”
  3. Open all the .conf files in the path mentioned and add the below lines if they are not already present. These lines can be found between line no 553 to 558. Stop the Apache services before modifying the .conf files.
    <IfModule mpm_winnt_module>
    ThreadStackSize 393216
    </IfModule>
    
Remember:
Restart the services after making the required changes