I have an asp.net website that uses a web application, and they are both in the same application pool (with one workflow). There is an httpmodule on the website, the web.config file loaded into it, and it is curious that both the main website and the application will be served by separate httpmodule instances. Why is this? Since they are in the same process, it seems that they should use one instance.
Also, if I try to use static variables in the application, they will point to different objects than on the asp.net website. The same question as before, since they are in the same process, should not they be the same object or is it impossible to make .net some kind of border inside the process?
source
share