HTTP Handler n'est pas exécuté
Bonjour,
J'ai un souci avec un http handler.
Je m'explique, mon but est de déclenché du code chaque fois qu'une page nommées FormServer.aspx est chargée.
Pour cela j'ai écris une classe héritant de IHttpHandler
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
classLightboxHandler : IHttpHandler
{
#region IHttpHandler Members
boolIHttpHandler.IsReusable
{
//Synchronous handler
get { return false; }
}
voidIHttpHandler.ProcessRequest(HttpContext context)
{
context.Response.Write("Hello from Custom Handler");
}
#endregion
} |
Ensuite, étant donné que mon code tourne sur IIS6, j'ai ajouté ceci dans mon web.config :
Code:
1 2 3 4 5 6 7
|
<httpHandlers>
........
<addverb="*"path="FormServer.aspx"type="xxxxxx.yyyyyyy.SharePoint.PSInfopathLighbox.HttpHandlerCode.LightboxHandler,xxxxxxxx.yyyyyyy.SharePoint.PSInfopathLighbox, Version=1.0.0.0, Culture=neutral, PublicKeyToken=704f388e487c7bdc"/>
.......
</httpHandlers>
|
L'assembly est déployé dans la GAC.
Avez-vous une idée pourquoi mon code n'est jamais exécuté ?
Merci d'avance,
Ludovic Lefort,