Programming, Web News, Web Hostings, Technology
Disabling debug in other than dev environment – Sys.InvalidOperationException
If your web application using Microsoft Ajax (Ajax Control Toolkit), then you probably encounter common unknown javascript error as following:
Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
Cause:
Unknown handler error in MicrosoftAjax.debug.js
Resolution:
To ensure your server not prompting this debug message on your test or production server, just set debug=”false” in web.config. By doing this, ASP.net will not automatically include MicrosoftAjax.debug.js into one of the resource.axd
No related posts.
| Print article | This entry was posted by ervinter on June 30, 2009 at 11:23 am, and is filed under Programming. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
