So, i have a webforms asp.net application that i compile all it's code and basically leaves no file at the folder, except for the "bin" folder and the "web.config" file. All pages, handlers and everything else really is delivered by the HttpApplication implementation, even images and other resources.
To do that i publish using the complete merge option, and i just need to keep the "runAllManagedModulesForAllRequests" tag at the web.config, and it works.
So my question is; is there anything that i can implement on the code side to allow the same result and remove that tag from web.config? Is it possible to not have a web.config module tag at all, and still run all requests through the managed code?
CodePudding user response:
It is impossible. That's strictly an IIS setting, so you won't be able to move it to your code.
However, if you also own the IIS server configuration, you can move this setting up to applicationHost.config
in a location
tag, instead of web.config
of your web app, which leaves the latter as clean as you wished.