How to get site context/information during the PreapplicationStartMethod

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2011-02-14T18:24:41Z Indexed on 2011/02/15 15:25 UTC
Read the original article Hit count: 245

Filed under:
|
|
|

When you run the same web based application as a multi-tenant application for different clients is there a way during the PreapplicationStartMethod to gain some kind of context to the site that is being started?

More specifically I'd like to get the host header information (the "bindingInformation" attribute value from the applicationHost.config); I have found ways to get this information at the time of a specific request long after the application has started. Is there a way to get the information during the application startup process?

This is an MVC 3 application and IIS 7.5.

© Stack Overflow or respective owner

Related posts about mvc

Related posts about iis