プロジェクトに 2 つのカスタム .axd ハンドラーがあります。httpHandlers およびハンドラーの下の web.config で両方とも定義されています。
httpHandler:
<add verb="GET" path="ShowImage.axd" validate="false" type="ImageServer.StreamImage, ImageServer"/>
<add verb="GET,POST" path="Upload.axd" validate="false" type="UploadFileServer.UploadFile, UploadFileServer"/>
ハンドラ:
<add name="ImageServer" preCondition="integratedMode" path="ShowImage.axd" verb="GET" type="ImageServer.StreamImage, ImageServer"/>
<add name="UploadFileServer" preCondition="integratedMode" path="Upload.axd" verb="GET,POST" type="UploadFileServer.UploadFile, UploadFileServer"/>
ShowImage.axd を呼び出すと、すべて正常に動作します。
フィドラーでのリクエストは次のようになります。
GET /WebApp/ShowImage.axd?Bla=x HTTP/1.1
Upload.axd を呼び出すと、404 が返されます。
フィドラーでのリクエストは次のようになります。
POST /WebApp/Upload.axd HTTP/1.1
両方の .dll は Bin フォルダーにあります。
なぜ?