Lets see who will answer this

kaisersoze

Centurion
Joined
Aug 27, 2003
Messages
152
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.
 
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.
 
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.
 
Back
Top