views:

680

answers:

3

Out of the box, SubText is unable to run under IIS7's Integrated Pipeline Mode. Unfortunately, it goes beyond "migrating" the web.config to match the required format. For example, moving httpModules and httpHandlers to their new location within . As it turns out, Request is not available at Application_Start when running in Integrated mode and this causes SubText to fail too.

If we weren't adding blog functionality to an existing, GoDaddy-hosted ASP.NET web site, we would be left with two options: Update the SubText codebase to not use the request context (plus fix whatever else surfaces) OR simply run SubText in classic mode.

Unfortunately, our current GoDaddy account is limiting as only a single app pool is available to us. Since the main site is configured for Integrated Pipeline Mode, we don't have the freedom to change the IIS mode without impacting (read: breaking) the main site.

Short of switching to a more flexible host, the current plan is to modify the main site to run in classic mode. It's a simple site and reverting the web.config to the classic mode format should not be a big deal. Alternatively, I'm toying with the idea of updating the SubText codebase to not use the request context at Application_Start. I haven't heard on anyone running SubText in Integrated Mode and it might be a nice problem to solve -- assuming there's an end to the necessary updates.

Assuming there are about 8 more hours allocated to this effort, what's the best approach? Am I missing any other options?

A: 

As a follow up, we quickly commented out the Application_Start code which referenced the Request context. This experiment resulted in further exceptions. We're now moving forward with modifications to the main site to run in classic mode.

Ben Griswold
+2  A: 

Unfortunately I didn't have an IIS 7 installation to test with when deploying Subtext 2.1.2. In the upcoming Subtext 2.5, we work great with IIS 7 integrated mode. Unfortunately, 2.5 is not yet out.

If you're ok with the bleeding edge, you could try the latest build from our trunk. It's pretty solid and we're almost done. If you're upgrading an existing blog, it may be challenging. If you're installing a new one, this might be a good build to try.

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

Haacked
We're up and running fine with the older version in IIS7 classic mode. No worries. Thanks for the comment, Phil.
Ben Griswold
A: 

Phil - thanks for the link.

We're in the process of moving dozens of hosting clients - many using the pre 2.5.x code-base - and our host servers all run Plesk Control Panel and the engine for host management purposes. I've hacked around getting one subtedt site working in IIS 7 Integrated - it was actually running in Classic with some extra handlers added in IIS on the site.

I was not, however, able to do this for any other sites - my little hack was sufficient for one site only - it would require code modification to get the others working.

I'm going to try the 2.5 bits you provided.

Do you have docs on upgrading these existing 1.x sites to the 2.5.x code-base? We have a ton of these clients and we'd really like the opportunity to provide them some value add here.

Michael