kaisersoze Posted April 8, 2004 Posted April 8, 2004 I Have a main site, mainsite has its own webconfig file. After some time we developed 2 more modules (separeate web applications, so each has its own webconfig files) and each module runs fine as individually. Now, we are trying to create folders inside the mainsite namely module1, module2 and dump all the files respectively. so, module1 has its own webconfig file and module2 has its own config file. Q. I am getting an error when I try to hit http://server/mainsite/module1/. Can anyone tell how to do this. Quote Note: I think as a programmer not as a human, so use my answer at your will
*Gurus* Derek Stone Posted April 8, 2004 *Gurus* Posted April 8, 2004 Only certain settings in web.config can be defined/redefined in directories under the application's root. If you wish to define these settings in child directories you will need to "turn" the directory into an application through IIS. Quote Posting Guidelines
kaisersoze Posted April 8, 2004 Author Posted April 8, 2004 I was not able to resolve your answer, but I can provide you with one. In order to make subfolders inside a mainsite act as its own application. 1. Open IIS, 2. expand the tree till you see your folder, 3. right click on the folder (in my case module1), and go to properties. 4. under application settings, click on create button 5. Under Execute permissions, select scripts and executables. 6. click on apply and ok button. For sure this will work, cause it is working for me. But, it has a catch. It is working internally but, when i try externally it gives me error. Error is in web config file regarding "customErrors mode=...." no matter what i say i still get the same error. But it is working excellently when accessed using internal ip address. Let me know if you have and answer. Quote Note: I think as a programmer not as a human, so use my answer at your will
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.