Search code examples
asp.netmulti-tenant

ASP.NET multi-Tenant Application


I have an Asp.net application 3.5. I want to be able to allow multiple/ different clients to access the same application but using different URL's. I have already managed to configure the database to allow this. So here's the main part. I want to host my application in a domain say...

wwww.myapplication.com

then allow different client to access the same application using

1) www.clientOne.myapplication.com
2) www.clientTwo.myapplication.com

  • Also the client subdomains i.e(clientone.myapplication.com and clienttwo.myapplication.com) should be autocreated by the client upon registration.

How can I achieve this..Your help will be greatly appreciated

A good example of how I want my application to work is www.quickschools.com


Solution

  • I finally found out the solution that I wanted, so I thought I would share with you my finding. It turns out I needed to create a web application from another running Asp.net web application (From C# Code)

    This tutorial by Robbe Morris was really helpful if you need to get started on this.

    Another article you might want to check out is this one.