tdsmithj — 2011-03-10T07:42:01-05:00 — #1
Hey, i want to put different asp.net projects in different folders. So where would be a root folder/project 1 root/ project 2. only problem it will contain multiple web.config files on the server.
how do i manage my web.config to target a specific web config.
I am on a shared hosting account.
nightstalker — 2011-03-10T23:06:12-05:00 — #2
Well, the root will be the place where all the sites read it from. But then each sub-folder will also read it from that folder, and read its own web.config and then combine them. So if you add a submodule or something on the root web.config, it will be available on all sub-folders, unless in those specific sub folders web.config's, you remove them.
wwb_99 — 2011-03-11T14:48:22-05:00 — #3
Depending on the shared setup, you should be able to make each folder it's own application and thereby have independent web.configs (and everything else). Note this kind of precludes running an ASP.NET app in the root, at least for straightforward setups.
pinch — 2011-03-14T10:06:24-04:00 — #4
Yeah your hosting provider should provide a tool for marking a folder as a 'web application'. If they don't then you'll probably have to request through their support to do it for you. Whichever folders you mark, ASP will look for the root web.config for that application within that root folder.