.NET on Cloud Foundry, Part 1: Installation on Windows and Using Iron Foundry

Alex Makarenko

Part 1 | Part 2 | Part 3

Creating .NET apps with Iron Foundry

PaaS has revolutionized the way applications are developed and deployed. With reduced delivery cycles and full automation, PaaS users can reach the market faster, significantly improving ROI and time-to-revenue. Cloud Foundry is one of the most popular open-source solutions for enterprises.

Until recently, .NET developers—who constitute a large part of software delivery folks—had rather limited access to Cloud Foundry’s services. The Iron Foundry project has corrected this imbalance by providing support for .NET on Cloud Foundry. It is not merely an extension, but an entire collection of tools and services .NET developers are used to working with, e.g. MS SQL and Message Bus-as-a-Service. Services can be bound to applications, so you do not have to worry about infrastructure and maintenance.

This post starts a series that will explore the capabilities of Iron Foundry. To show you how this platform works and try its services in action, I am going to create a validation prototype using a mixture of .NET and Node.js. I will rely on the Cloud-First approach in my investigation on how application interaction, management, and deployment are implemented in this platform. By the end of the series, you will have learned everything you need to know about creating .NET apps on Iron Foundry.


Installing CF on Windows: failed

The standard Cloud Foundry edition supports a great variety of programming languages and operating systems, but Windows is not on that list, unfortunately. Still, it does not mean you cannot use this PaaS on Windows machines. In this post, I will share my experience of integrating Cloud Foundry with Iron Foundry, an open-source framework for running .NET applications.

Although I had never installed Cloud Foundry on Windows before creating this post, I knew that—in theory—it can be done with BOSH-lite. Once the PaaS is installed, you can add DEA and Warden components from Iron Foundry. If you choose this way and use Cygwin, you will also have to install Ruby, Python, and Go to enable compilation of components locally.

However, the reality was not as simple. In the beginning, I was rather excited by the idea of deploying a local cloud, but something went wrong at the end of the installation. I got a “Package is corrupted” error, which means that uploading Cloud Foundry packages failed. I have tried different releases, but it seems the BOSH CLI has a bug specific to the Windows environment. Hopefully, this will be fixed very soon.

I recorded the installation process and below is a two-minute video with all the commands:

So, I was only two steps away from finishing the installation: generating a manifest and deployment. I am sure that a solution will be available in the coming months. For now, I will try to deploy Cloud Foundry on another platform or use Iron Foundry’s virtual machines. “Iron Foundry as a Service”

Since I didn’t manage to install Iron Foundry on my local machine, I decided to use, a publicly available sandbox for developers that enables to explore and interact with Iron Foundry on top of a full-featured Cloud Foundry v2 installation.

Iron Foundry allows for running web applications via the IIS Hostable Web Core and executing console applications. Remember, if you are working with console apps, you should name them app.exe, since it was the only name supported when I was writing this post.

Since I was going to run console applications for the background operations, I was more than pleased with the capabilities of the service. Creating Windows services was not my goal, that is why I didn’t feel upset by the fact that Iron Foundry does not support them for now, but hopefully, this feature will be added very soon. Anyway, a Windows service is just a method of running some components in Iron Foundry that is enabled via console apps.

To work with Cloud Foundry or Iron Foundry, I have downloaded a command line interface (read more about it here). So, now it’s time to see what services are available on Iron Foundry.

A list of free Iron Foundry services

As you can see, Iron Foundry supports MS SQL and MongoDB. Of course this list will be extended as adding new services does not affect Iron Foundry operation. To be honest, I was expecting to see Message Bus or RabbitMQ, but unfortunately currently there are no message exchange services on This was important for my application, because its background workers were to talk to each other. However, this is not a big deal and I will be able to avoid this limitation by using MongoDB’s capped collections or some other online messaging services.


Further reading

Get notified when new issues of "Iron Foundry for CF" series go live:

This series was written by Alex Makarenko; edited by Volha Kurylionak and Alex Khizhniak.

No Comments

Benchmarks and Research

Subscribe to new posts

Get new posts right in your inbox!