Visual Studio Windows Service ... Note

Visual Studio Windows Service to fix ASP.Net website very long process time timing out

The classic ASP.NET website allows users to select data variables for inclusion in a data file. Upon submission, the site generates a SAS program that utilizes Linux macros to create this data file. For fewer than 5,000 variables, SAS execution occurs directly within the web process, and the user waits for completion. When over 5,000 variables are selected, a new thread is initiated to run SAS, and the user receives an email notification upon completion. A significant problem arises with large jobs exceeding 80,000 variables, which can take up to four hours. The core issue is that the asynchronous thread fails to communicate back to the C# code to update job statistics and completion times. The current assumption is that session or application pool timeouts are not the cause after adjusting their settings. The user inquired if a Windows Service would indeed resolve this issue, given its persistent nature. They also asked how to share the relevant code with a Windows Service for processing large jobs. The user wants to know if they can conditionally use the Windows Service for high variable counts while retaining the web process for smaller jobs. Finally, they are seeking information on any other relevant timeout settings that might need adjustment.