SubText and IIS 7 Integrated Pipeline Mode

Externally, SubText cannot run in IIS7 Integrated Pipeline Mode. Unfortunately, this is beyond the scope of "wrapping" the web.config file according to the required format. For example, moving httpModules and httpHandlers to a new location. As it turns out, the request is not available in Application_Start when running in integrated mode and this also causes the SubText to crash.

If we weren't adding blog functionality to an existing ASP.NET website hosted on GoDaddy, we'd be left with two options: update the SubText database to not use the request context (plus fix any other surfaces) OR just run SubText in classic mode.

Unfortunately, our current GoDaddy account is limited as we only have one pool of apps available to us. Since the main site is configured for Integrated Pipeline Mode, there is no way for us to change the IIS mode without affecting (read: breaking) the main site.

Aside from moving to a more flexible host, the current plan is to change the main site to run in classic mode. This is a simple site and getting web.config back to classic mode shouldn't be a big deal. Alternatively, I am playing with the idea of ​​updating the SubText codebase to not use the request context in Application_Start. I haven't heard of anyone running SubText in Integrated Mode, and this might be a good problem to solve - assuming there is an end to the required updates.

Assuming there is an additional 8 hours for this effort, what's the best approach? Am I missing any other options?

0


source to share


2 answers


Unfortunately, I didn't have an IIS 7 setup to test while deploying subtext 2.1.2. In the upcoming Subtext 2.5, we are doing fine with IIS 7 Integrated Mode. Unfortunately, 2.5 is not out yet.

If you're okay with the bleeding edge, you can try the latest build from our barrel. It's pretty solid and we're almost done. If you are updating an existing blog, this can be tricky. If you are installing a new one, this might be a good try.



http://build.subtextproject.com/builds/archive/SubText-2.5.0.228.zip

+2


source


As a follow-up, we quickly commented out the Application_Start code that referenced the request context. This experiment resulted in additional exceptions. We are now moving forward with modifications to the main site to run in classic mode.



+1


source







All Articles