Mono Support Multiple apps based on the request URL 

Viewed 16731 time(s), 2 post(s), 8/23/2010 6:43:26 PM - by mat2
8/23/2010 6:43:26 PM
0 Reputation 6 Total posts

I want to have multiple applications hosted from the single database and virtual directory. Each applications gets its own URL and MonoX should use this information to process the request.

I have run a few applications on the old version of MonoX (DNN also) without too many problems, but it is not quite clear on how to do it in this version.

I am aware that there is aspnet_Applications table in the database, so this scenario should be supported, but there is also the ApplicationName hardcoded in the web.config, so I'm at lost here.

1
8/24/2010 7:28:40 PM
7207 Reputation 956 Total posts

Yes, it can be done by overriding MonoX Personalization, Role and Membership providers and changing the bahavior of the ApplicationName property in each of them. An additional HttpModule will take care of parsing the incoming request URL and setting, deciding which URL is bound to the particular application and storing the application name in the HttpContext. We will soon publish the blog post with more details; in the meantime, I can recommend this excellent article:

http://cgeers.wordpress.com/2009/10/24/asp-net-supporting-dynamic-applications/

Regards,

Denis

2
This is a demo site for MonoX. Please visit Mono Software for more info.