<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by M Bala on Medium]]></title>
        <description><![CDATA[Stories by M Bala on Medium]]></description>
        <link>https://medium.com/@b.murali?source=rss-cd934273b373------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by M Bala on Medium</title>
            <link>https://medium.com/@b.murali?source=rss-cd934273b373------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:32:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@b.murali/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One Windows Server, Many Runtimes]]></title>
            <link>https://medium.com/@b.murali/one-windows-server-many-runtimes-666d61e41633?source=rss-cd934273b373------2</link>
            <guid isPermaLink="false">https://medium.com/p/666d61e41633</guid>
            <category><![CDATA[nets]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[wslc]]></category>
            <category><![CDATA[ii]]></category>
            <category><![CDATA[windows-server-2025]]></category>
            <dc:creator><![CDATA[M Bala]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 09:31:01 GMT</pubDate>
            <atom:updated>2026-11-02T09:31:01.627Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How IIS and WSLC bring .NET Framework, ASP.NET Core, and Node.js together</em></p><h3><strong>Why I Started This Experiment</strong></h3><p>Many organizations have applications built using different technologies. Some still use ASP.NET Web Forms and .NET Framework, while newer applications use ASP.NET Core, Node.js, Python, and other modern technologies.</p><p>Traditionally, hosting these applications could mean maintaining separate Windows and Linux servers.</p><p>I wanted to explore a simple question:</p><blockquote>Can we run traditional Windows applications and modern Linux containers together on the same Windows Server, using IIS as a common entry point?</blockquote><p>With Windows Server 2025 and Microsoft’s new Windows Subsystem for Linux Containers (WSLC), the answer looks promising.</p><p>Here is what I learned from a recent proof of concept.</p><h4>What Is WSLC?</h4><p>Microsoft made WSL containers (WSLC) generally available on September 29, 2026. This feature is built into Windows Subsystem for Linux (WSL) and allows us to build and run Linux containers directly on Windows using the wslc command.</p><p>WSLC allows us to build and run Linux containers directly on Windows using the wslc command.</p><p>For example:</p><pre>wslc run -d -p 8083:3000 --name wslc-nodejs wslc-nodejs:hello</pre><p>This starts a Node.js application inside a Linux container and makes it available through port 8083 on Windows.</p><p>We do not need to install a separate Docker Engine for this basic container workflow.</p><p>This opens an interesting possibility: Windows and Linux applications can share the same server while keeping their own runtime environments.</p><h3>My Test Environment</h3><p>I used a Windows Server 2025 virtual machine with the following components:</p><ul><li>Internet Information Services (IIS)</li><li>IIS URL Rewrite 2.1</li><li>Application Request Routing (ARR) 3.0</li><li>Windows Subsystem for Linux Containers (WSLC)</li><li>ASP.NET Core Linux container</li><li>Node.js 24 Alpine Linux container</li><li>Traditional ASP.NET Web Forms application using .NET Framework 4.x</li></ul><p>The goal was to use one <strong>Windows Server and one IIS website to support all three application types</strong>.</p><h3>Three Applications, Three Different Runtimes</h3><h4>Traditional ASP.NET Web Forms</h4><p>I prepared a simple ASP.NET Web Forms application using just two files:</p><ul><li>Default.aspx</li><li>Default.aspx.cs</li></ul><p>The .aspx file contains only the page directive. The code-behind generates the Hello World page and displays information about the .NET Framework, CLR, IIS, and Windows Server.</p><p>This application is designed to run directly under IIS, without a container.</p><h4>ASP.NET Core Inside a Linux Container</h4><p>Next, I ran Microsoft’s sample ASP.NET Core application using WSLC.</p><pre>wslc run -d -p 8081:8080 --name my-demo mcr.microsoft.com/dotnet/samples:aspnetapp</pre><p>The application runs inside a Linux container but can be accessed from Windows at:</p><pre>http://localhost:8081</pre><p>This worked successfully.</p><h4>Node.js Inside Another Linux Container</h4><p>I also created a simple Hello World application using Node.js 24 on Alpine Linux.</p><p>The application was packaged into a container image and started with WSLC:</p><pre>wslc run -d -p 8083:3000 --name wslc-nodejs wslc-nodejs:hello</pre><p>Testing the application:</p><pre>curl.exe http://localhost:8083/</pre><p>Returned:</p><pre>Hello World from Node.js on WSLC!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ewRdoXcTWBDO0Dd_XYh7A.png" /><figcaption>Figure 1: ASP.NET Core and Node.js Linux containers running side by side on Windows Server 2025 using WSLC.</figcaption></figure><p>Both Linux containers were running together on the same Windows Server.</p><h3>IIS Brings Everything Together</h3><p>One of the most useful parts of this experiment was exploring how IIS can act as a reverse proxy.</p><p>Using IIS URL Rewrite and Application Request Routing, we can define different applications under the same IIS website.</p><p>For example:</p><ul><li><strong>Traditional ASP.NET Web Forms</strong>: /netfx-aspnetapp/ — Hosted directly in IIS using .NET Framework.</li><li><strong>ASP.NET Core</strong>: /wslc-sample-aspnetapp/ — Hosted in a Linux container through WSLC.</li><li><strong>Node.js</strong>: /wslc-nodejs/ — Hosted in another Linux container through WSLC.</li></ul><p>IIS handles the traditional ASP.NET application directly. For container applications, IIS forwards requests to the appropriate local ports. Each application has its own IIS application configuration. The traditional .NET Framework application uses an IIS application pool with the .NET CLR, while the Linux container applications use IIS as a reverse proxy without loading the .NET Framework runtime.</p><p>This means users can access different applications through one web server without needing to know which technology is running behind each URL.</p><p>The reverse-proxy design is straightforward, although applications using root-relative URLs may need additional path handling.</p><h4>A Common Deployment Folder</h4><p>I also wanted to keep deployments simple for developers.</p><p>Instead of spreading application files across different locations, I organized them into separate folders:</p><pre>C:\Web Sites\<br> |<br> +-- applications\<br> |     +-- netfx-aspnetapp\<br> |<br> +-- wslc\<br>       +-- wslc-sample-aspnetapp\<br>       +-- wslc-nodejs\</pre><p>These folders contain application files and deployment configuration. WSLC manages container images and runtime storage separately.</p><p>The idea is simple: developers deploy their application files into an agreed location.</p><p>For container applications, a new image must still be built and the container recreated when source files change. Copying files alone does not update an already running container.</p><h3>Interesting Findings and Challenges</h3><p>Not everything worked perfectly on the first attempt. A few findings were especially useful.</p><h4>1. Administrator and normal PowerShell use different WSLC sessions.</h4><p>I noticed that containers created from normal PowerShell were not visible when running wslc ps -a from Administrator PowerShell.</p><p>WSLC maintains separate default sessions for elevated and non-elevated processes.</p><p>We can explicitly select the required session when managing containers.</p><h4>2. Container ports are shared at the Windows host level.</h4><p>I initially received a port conflict when starting my Node.js container.</p><p>The reason was simple: an earlier container in another WSLC session was already listening on port 8083.</p><p>Removing that container released the port, and the new container started successfully.</p><h4>3. Stopped containers can be restarted without rebuilding images.</h4><p>I learned the difference between wslc run and wslc start.</p><p>The first creates a container from an image. The second starts an existing stopped container.</p><h4>4. Running WSLC Containers Without an RDP Login</h4><p>Initially, I noticed that my WSLC containers stopped after logging out of the Windows Server VM. This raised an important question: How can we keep Linux containers running without requiring someone to stay logged in?</p><p>I explored running the containers under the Windows SYSTEM account instead of my interactive user session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*mGvx1ly62-vS_oJu3BBshQ.png" /><figcaption>Figure 2: Windows Task Scheduler configured to manage WSLC containers under the SYSTEM account.</figcaption></figure><p>To make the setup more reliable, I configured Windows Task Scheduler to run under the SYSTEM account and check the container status every minute. If a container has stopped, the task automatically attempts to restart it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*KmxanEX5mBRUXGzXTWB9UQ.png" /><figcaption>Figure 3: A scheduled task runs every minute to check WSLC container status and restart stopped containers.</figcaption></figure><p>The results were encouraging. Both containers remained accessible after RDP logoff and were available again after restarting the Windows Server VM, without requiring an interactive user login.</p><p>This was one of the most important findings of my experiment. It showed that, with the right configuration, WSLC containers can operate independently of an RDP session and benefit from automatic recovery.</p><p>Although this worked in my test environment, production use would require further validation of security, monitoring, and recovery from unexpected failures.</p><h3>Why This Matters</h3><p>Many organizations cannot move every application to a new technology at once.</p><p>A company may have a large ASP.NET Web Forms application that has worked reliably for years. At the same time, its developers may want to build new applications using ASP.NET Core, Node.js, or Python.</p><p>These requirements do not necessarily need separate hosting environments.</p><p>A shared Windows Server with IIS and Linux container support could offer several benefits:</p><ul><li>Reuse existing investments: Keep older .NET Framework applications running without rewriting them.</li><li>Support modern development: Run Linux-based applications alongside traditional Windows applications.</li><li>Simplify access: Use IIS as one common entry point for different applications.</li><li>Improve flexibility: Allow development teams to choose technologies based on application needs.</li><li>Support gradual modernization: Introduce modern applications without requiring an immediate migration of existing systems.</li></ul><p>Of course, sharing a server also means sharing infrastructure resources and operational risks. Security, monitoring, recovery, resource limits, and application isolation still need careful planning.</p><h3>What’s Next?</h3><p>The proof of concept confirmed that ASP.NET Core and Node.js Linux containers can run together on Windows Server 2025, alongside traditional .NET Framework applications.</p><p>With SYSTEM-level execution and automatic recovery through Windows Task Scheduler working in my test environment, my next focus is improving health monitoring, deployment automation, and failure recovery. I also plan to explore additional Linux workloads, such as Python applications.</p><p>I also want to validate IIS reverse-proxy behavior across the complete application lifecycle.</p><h3>Final Thoughts</h3><p>The most interesting takeaway from this experiment is not simply that Windows can run Linux containers.</p><blockquote>It is that traditional applications and modern technologies do not always have to compete with one another.</blockquote><p>ASP.NET Web Forms, ASP.NET Core, Node.js, and potentially many other technologies can be part of the same hosting architecture.</p><p>Each application can use the runtime it needs, while IIS provides a common entry point.</p><p>The experiment also demonstrated that Linux containers can run under the Windows SYSTEM account and remain available after RDP logoff and a server restart. This makes the approach more practical for unattended server hosting. While production readiness still requires further testing, the results are promising for organizations maintaining legacy systems while introducing modern applications.</p><blockquote>Modernization does not always mean replacing what already works. Sometimes, the better approach is allowing old and new technologies to coexist.</blockquote><p>References:</p><p><a href="https://blogs.windows.com/windowsdeveloper/2026/09/29/wsl-containers-now-generally-available/">WSL containers is now generally available</a></p><p><a href="https://learn.microsoft.com/en-us/windows/wsl/wsl-container/">https://learn.microsoft.com/en-us/windows/wsl/wsl-container/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=666d61e41633" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>