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 Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos