Last post Jan 20, 2010 06:23 AM by BBuzzi
Jan 19, 2010 02:18 PM|BBuzzi|LINK
I'm trying to move the code from a dll to my project to handle client side errors and log to server or send mail.
Almost everything is working fine, except that I don't know if I've correctly registered the HttpHandler in my web.config (I guess this is the error's cause).
What's happening is that the Handler is working fine. But I have a control class that in the OnPreRender event registers the client script that makes the callback.
This control is referenced like this on my master page:
and is the first created control inside the body tag:
When the page is rendering it stays 'freezed' for a couple seconds and logs an error saying "This is an invalid webresource request".
Besides the error log, the user doesn't know it happened... But it's making a big difference in the pages performance.
the handler is registered in the web.config like this:
Thanks for the help!!
Jan 20, 2010 05:34 AM|BBuzzi|LINK
Does anybody have a tip on how can I solve this?!
I've seen a lot of forum sites talking about robot.txt, but that's not the error cause in my case...
It just doesn't work as expected since in every page PreRender event this error occurs!
I've tried changing the code from the class that extends Control to my BasePage PreRender, overriding it, and it gives me the same error.
I've also tried to use the handler inside the dll with no luck, same error!
Any help is greatly appreciated!
Jan 20, 2010 06:23 AM|BBuzzi|LINK
Now I've found the solution...
Easy one in fact... I was forgeting something... (in fact, I wasn't forgeting, since this is my first HttpHandler... =p)