Problem solve Get help with specific problems with your technologies, process and projects.

Error message in global.asax application

I am creating an application that in its global.asax, detects the application that is making the request and accordingly, loads the same index page in a language and template. e.g. http://localhost/mysiteFR - Loads Template "Mysite" and Language "French"
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

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.