Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have to install an httphandler that needs to run on classic mode. I have created an application on the iis that uses a classic apppool and put the handler assembly there.

The vendor gave me a configuration in the deployment document that looks like this:

<system.web>
   <globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" />
   <httpModules>
   </httpModules>

   <httpHandlers>
      <add verb="*" path="*" type="ProductName.ProductName, ProductName" />
   </httpHandlers>

</system.web>
<system.webServer>
   <validation validateIntegratedModeConfiguration="false"/>

   <handlers>
      <add name="someUnspecificName" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
   </handlers>

</system.webServer>

The error I get when requesting a URL on the application is a 404, so I guess the handle is not used at all.

Does the configuration look ok for a 64bit system?

share|improve this question

1 Answer 1

Are you sure that in

<httpHandlers>
   <add verb="*" path="*" type="ProductName.ProductName, ProductName" />
</httpHandlers>

your vendor told you to use path="*"?

The path attribute of a httphandler specifies the path or wildcard specification of the URL for which this handler will be invoked.

For example, if you want your handler to be called only when dummy.abc file is requested, the path attribute will contain "dummy.abc"; similarly if you want your handler called for any file having .abc extension, the path attribute will contain "*.abc".


EDIT

This article could be helpful: Request Restrictions Dialog Box.

Use the Request Restrictions dialog box to specify optional restrictions, such as the requested resource type or HTTP verb, for which you want a handler to process requests. Configure restrictions only if you have a specific need to limit the conditions under which a handler processes requests. When you do not configure restrictions, handlers will process requests regardless of the resource type requested and the HTTP verbs specified.

I think that you'll have to disable restrictions of the existing default handlers ("Invoke handler only if request is mapped to").

share|improve this answer
    
Yes they need the wildcard. The Handler gets invoked on all request. –  Malcolm Frexner Jan 24 '10 at 19:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.