back to top

Precompiling and Warming Up Infor SLXClient and SData Portals Using aspnet_compiler.exe

Precompiling and Warming Up Infor SLXClient and SData Portals Using aspnet_compiler.exe

When hosting Infor SLXClient and SData portals on IIS, the first request after an application pool restart can experience slow response times due to Just-In-Time (JIT) compilation. To improve the user experience, you can precompile these portals using the built-in aspnet_compiler.exe, effectively “warming up” the sites.

This blog post will guide you through:

  • Using aspnet_compiler.exe to precompile the portals.
  • Determining the correct IIS Site ID to use in the metabase path.
  • Automating the process using a simple batch script.

1. Understanding aspnet_compiler.exe

The ASP.NET compiler is a command-line tool that precompiles an ASP.NET web application, reducing runtime compilation overhead. In our case, we use the -m flag to specify an IIS metabase path, ensuring that our portals are precompiled before users access them.

Syntax:

C:\Windows\Microsoft.Net\Framework\v4.0.30319\aspnet_compiler.exe -m "MetabasePath"

Where:

  • -m indicates that the site is defined in IIS Metabase (not a file path).
  • "MetabasePath" specifies the IIS metabase location of the portal.

2. Finding the Correct IIS Site ID

Before running the script, we need to determine the correct Site ID in IIS, as the metabase path follows this format:

/LM/W3SVC/[SiteID]/Root/[ApplicationName]

Steps to Find Your IIS Site ID:

  1. Open Command Prompt as Administrator.
  2. Run the following command to list all IIS sites:
appcmd list sites

The output will look something like this:

SITE "Default Web Site" (id:1,bindings:http/*:80:,state:Started)
SITE "InforSLX" (id:2,bindings:http/*:3333:,state:Started)

Locate your Infor SLXClient and SData sites. Note the Site ID (e.g., 2 for “InforSLX”).

Your metabase paths will be:

  • SLXClient: /LM/W3SVC/2/Root/SlxClient
  • SData: /LM/W3SVC/2/Root/SData

3. Automating the Process with a Batch Script

Instead of running the commands manually, we can create a batch script (.bat file) to warm up both portals automatically.

Batch Script: warmup_slx.bat

@echo off
echo Script started at %DATE% %TIME%

set exe="C:\Windows\Microsoft.Net\Framework\v4.0.30319\aspnet_compiler.exe"
set portals="/LM/W3SVC/2/Root/SlxClient" "/LM/W3SVC/2/Root/SData"

for %%p in (%portals%) do (
    echo Starting %%p at %DATE% %TIME%
    %exe% -m "%%p" >nul
    echo Ending %%p at %DATE% %TIME%
)

echo Script ended at %DATE% %TIME%

4. Running the Script

  1. Save the script as warmup_slx.bat.
  2. Right-click the file and select Run as Administrator.
  3. The script will:
    • Precompile SLXClient and SData portals.
    • Output timestamps for each step.
  4. When completed, your portals will be precompiled and ready for fast response times.

5. Scheduling Automatic Warm-Up After Server Restart

To ensure this script runs after a server reboot:

  1. Open Task Scheduler (taskschd.msc).
  2. Click Create Basic Task.
  3. Set Trigger to “At startup” or “On IIS service start”.
  4. Under Action, choose Start a Program and browse for warmup_slx.bat.
  5. Check Run with highest privileges to ensure it runs as Administrator.

By using aspnet_compiler.exe with the correct IIS metabase path, we can effectively precompile and warm up Infor SLXClient and SData portals, improving response times for users. Automating this process ensures optimal performance after a server restart or application pool recycle.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Jason Buss
Jason Buss
Jason is a senior application developer with Customer FX.

4 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM 10: Phone Number “Starts With” Search Not Working with Formatted Numbers

Infor CRM 10's Starts With search may fail to find phone numbers stored with formatting characters. Learn why this happens, how to identify affected records, and how to resolve the issue.

Increase Attachment Size Allowed in the Infor CRM SLX Web Client

It is possible to increase Infor CRM SLX's limit on the size of a file that can be uploaded by editing values in web.config file.

A Closer Look at the AI Features in Infor CRM v10

Infor CRM v10 includes several built-in Generative AI features that go beyond a simple chatbot. Here's a closer look at AI Summary, AI Assistant, AI Newsfeed, and AI-assisted email drafting.

[Webinar] Infor CRM SLX Admin Essentials: Xbar for Web and Email Marketing

On Tuesday, September 15, 2026, Infor is hosting an...

Infor CRM Mobile 4.4 Now Available: What’s New

Infor CRM Mobile 4.4 is now available for single-tenant cloud and on-premises customers. Explore business card capture, dashboards, workflows, and more.

Related Articles

Infor CRM 10: Phone Number “Starts With” Search Not Working with Formatted Numbers

Infor CRM 10's Starts With search may fail to find phone numbers stored with formatting characters. Learn why this happens, how to identify affected records, and how to resolve the issue.

Increase Attachment Size Allowed in the Infor CRM SLX Web Client

It is possible to increase Infor CRM SLX's limit on the size of a file that can be uploaded by editing values in web.config file.

A Closer Look at the AI Features in Infor CRM v10

Infor CRM v10 includes several built-in Generative AI features that go beyond a simple chatbot. Here's a closer look at AI Summary, AI Assistant, AI Newsfeed, and AI-assisted email drafting.

[Webinar] Infor CRM SLX Admin Essentials: Xbar for Web and Email Marketing

On Tuesday, September 15, 2026, Infor is hosting an administrator-focused webinar covering two areas that can help organizations...

Related Videos