We have an issue where we need to change certain settings in the web.config of an IIS web site, dependant on if the IIS is v6 or v7 and above
i.e. in v6 we need
Code: Select all
<system.web>
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
Code: Select all
<system.webServer>
<handlers>
<add name="*.ashx" path="*.ashx" verb="*" type="AjaxPro.AjaxHandlerFactory, AjaxPro" resourceType="Unspecified" requireAccess="Script" />
Also how do I know what IIS version is installed on a machine ? (I already limit the installer to v6 or above in Launch Conditions)
FOLLOW US
Get the latest news in Application Packaging