HTTP Handler not executed

  • Thread starter Thread starter wwwmike
  • Start date Start date
W

wwwmike

Hello everybody.

I developed a simple HTTP Handler on my local machine WIN XP and the
Handler get called. Everyting worked fine

However, when I moved sources to my hosting provider the HTTP Handler
did not work anymore. This time I just got an error message. "HTTP 404
- File not found"

URL Example:http://www.mypage.com/images/picture_123.gif

Can my provider restrict HTTP Handlers in the machine.config file. So
far I havent heard anything from my provider.

***Web.config***

....
<httpHandlers>
<add verb="*" path="picture_*.gif" type="notification,App_Code"/>
</httpHandlers>
....

****App_Code/Notification.vb*****

Imports Microsoft.VisualBasic
Imports helper
Imports System
Imports System.Web

Public Class notification : Implements IHttpHandler

Public Sub ProcessRequest(ByVal context As HttpContext) Implements
IHttpHandler.ProcessRequest


...do some processing here

End Sub

Public ReadOnly Property IsReusable() As Boolean Implements
IHttpHandler.IsReusable
Get
Return False
End Get
End Property
 
Hi Mike,

It is more than likely that the handler is being overridden by the IIS
handling. I presume you were running this through the Visual Studio
deployed server which works fine but until IIS is configured to accept
this mapping, it is unlikely it will work on a shared hosting server.
It is likely that they might have used @lockElements on httpHandlers.
Best way is to ask them ofcourse :)

See here for info,

http://aspadvice.com/blogs/rjdudley/archive/2005/10/03/12984.aspx

Sarat
 
Hello Sarat,

Thanks for your help.

Mike :)

Sarat said:
Hi Mike,

It is more than likely that the handler is being overridden by the IIS
handling. I presume you were running this through the Visual Studio
deployed server which works fine but until IIS is configured to accept
this mapping, it is unlikely it will work on a shared hosting server.
It is likely that they might have used @lockElements on httpHandlers.
Best way is to ask them ofcourse :)

See here for info,

http://aspadvice.com/blogs/rjdudley/archive/2005/10/03/12984.aspx

Sarat
 
Back
Top