What is the preferred way to organize your asp.net web application? Here are the two choice I have:
-
have one bin/ directory with all the dlls in it and one main dll. This case would require a rebuild each time any server code has been changed. Obviously, there may be several directories, but there is only one BIN
-
can have several bin directories (say one per each directory). The advantage here is that each directory is its own app – but other than that it seems pretty messy to me.
What is the best option? If I go with option 1) can I have Web.config file contain settings for several apps?
Ive never had to use multiple bin folders – not sure why you would want to. IIS will load all the dll’s it finds in there and Ive never had any perforamnce issues – even with things like sharepoint that has heaps.
Having multiple config files is quite useful and valid.
HTH
Cheers