How to User HttpHandler such as .ashx file with IIS7 Integrated Mode, Webfarm Environment

Recently, we’ve moved our hosting for the Silicon Valley Code Camp to MOSSO, which is a hosted web farm. In order to run modules and handlers, it seems it’s necessary to run in IIS7’sintegrated mode. Once this is set, other small issues creep up like for example you can no longer run HttpHandler’s from the standard HttpHandler’s section in your web.config file (see below)

In order to make this work, you have to do two things. First, as MOSSO suggest on their web site http://help.mosso.com/article.php?id=260 you need to set a section in your <system.webServer> section called <staticContent>. Second, you need to add to the the same handler you defined in the old section to the <handlers> section of the <system.webServer> section. Make sure you add a name tag because that’s required in this section, where as it’s not required in the <HttpHandlers> section.

Peter is a software professional specializing in mobile and web technologies. He has also been a Microsoft MVP for the past 7 years. To read more about Peter Kellner and his experience click here. For information about how Peter Kellner might be able to help you with your project click here.