HTTP Handler not executed

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
 
S

Sarat Pediredla

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
 
W

wwwmike

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top