MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Multiple apps based on the request URL  (Mono Support )

Viewed 16299 time(s), 2 post(s) 8/23/2010 6:43:26 PMby mat2
mat2

mat2

8/23/2010 6:43:26 PM
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.
This content has not been rated yet. 
0 Reputation 6 Total posts
denis

denis

8/24/2010 7:28:40 PM
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
This content has not been rated yet. 
7207 Reputation 956 Total posts