Thursday, October 27, 2011

Helicon URL Rewrite module with Sitecore in Integrated pipeline mode

I recently happened to help a few customers resolve an issue with Helicon ISAPI URL Rewrite module when Sitecore runs in Integrated mode. So, I decided to make create a quick post about it as it took me awhile to figure out why this was happening. I even had to contact Helicon support channel to see if they had any insights into this issue.

The long story short Helicon module has to be configured in early request processing in order to work with Sitecore in Integrated pipeline mode. Here is the setting that you need to set up to make it happen:

Now a few more details for those who still reading. So, why this becomes an issue when you run your Sitecore app in Integrated mode? The answer lies in the model that Integrated pipeline has. It’s different from Classic mode (aka IIS 6 model) which is based around ISAPI modules. For those who want to dive into details I’d recommend to read these articles: ASP.NET Application Life Cycle Overview for IIS 7.0 and Comparing Native-Code and Managed-Code Notifications [IIS 7].
As all native and managed modules can subscribe to the same processing events when you run you app in integrated mode, the Helicon ISAPI module turns out to be not the first one that accepts a request. The first event that gets raised is Authentication one. Sitecore Http Module gets subscribed to that event thus it’s the first one who intercepts the request. After the Http Module the request gets changed and it points to the physical file, which is a physical layout page for your dynamically constructed page represented by a Sitecore item. As a result Helicon module gets a “wrong” URL.

If you’re not satisfied with this workaround, consider using official Microsoft URL Rewrite module.

For those who are still looking for the solution it's a first link in this post Smile.

Hope this will save someone a bit of time.


Aren Cambre said...

We ended up going with URL Rewrite when we switched to Windows 2008 R2 earlier this year. We couldn't get ISAPI Rewrite to fire off before Sitecore started interpreting the URL.

Ivan said...

I think using URL Rewrite 2.0 is a right way to go if you run your Sitecore site in Integrated mode. But if you already have a solution working with Helicon module and don't have plans to invest into changing that process, turning early request processing mode is the only option to make it work.

raju said... provides sitecore in hyderabad with best faculties on real time projects. We give the best online trainingamong the sitecore in Hyderabad.
Classroom Training in Hyderabad India

Anonymous said...

Thanks a ton for this Ivan! This came in handy for us.


Anonymous said...

wonderful information, I had come to know about your blog from my friend nandu , hyderabad,i have read atleast 7 posts of yours by now, and let me tell you, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a ton once again,
Regards, sitecore training in hyderabad

Sandeep SEO said...

Nice post, but it seems less, but very interesting to read and understand, hope post more blogs with more information Thank you...........visit our site for more details about Oracle Fusion Financials Courses.

Unknown said...

Thanks for sharing this useful information. for more details of Oracle training visit Oracle Fusion HCM Training in Hyderabad

Unknown said...

Thanks for sharing this useful information. for more details of Oracle training visit Oracle Fusion HCM Training in Hyderabad

Sannihitha Technologies said...

Very informative and well written post! Quite interesting and nice topic chosen for the post.
thanks for sharing this nice post,
MS Office training institute in hyderabad

Sannihitha Technologies said...

Thanks for sharing the details! thanks for sharing information,nice article.
i would like to more information from your side!
please added more then tips!Am working in
Excel Training In Hyderabad

shivani said...

A befuddling web diary I visit this blog, it's incredibly grand. Strangely, in this present blog's substance made motivation behind fact and sensible. The substance of information is instructive
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training

MS Azure Training in Hyderabad said...

I'm very happy to search out this information processing system. I would like to thank you for this fantastic read!!
Sitecore Online Training
Sitecore Training in Hyderabad