http://localhost/yoursiteNR - Loads Template "Yoursite" and Language "Norwegian"
If I define MySiteFR and YourSiteNR as applications, I am told that two applications cannot point to the same virtual path. If I make them only directories under a Web and not applications I get the following error - "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." What's going on? Can someone help me?
Platform: ASP.Net C#
I need more information from your scenario. Do you have a single code base for the whole thing and you want to simply point different virtual directories to it? If that's not the case, you should be perfectly able of setting them. At this point, I wonder why you need the global.asax to know anything about language: aren't they different apps after all? What do you mean by "load template xxx and language yyy"? tempate = .aspx page? language = Thread.CurrentUICulture?
Dig Deeper on Win Development Resources
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ... Continue Reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers. Continue Reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand. Continue Reading