Ticket T199432
Visible to All Users

Object doesn't support property or method 'CanHandleEvent' JavaScript error in IE 11

created 10 years ago

Running my web application in debug mode and when I navigated to another page in the application I received a boatload of errors stating Unhandled exception at line X, column X in http://localhoast:21871/ScriptResource.axd? … The exception (or one of them says) "Object doesn't support property or method 'promise'.

When I click to continue debugging the application I get tons more of these exceptions. One exception is:

Unhandled exception at line 8949, column 5 in http://localhost:21871/DXR.axd?r=1_187,1_101,1_180,1_98,1_172,1_178,1_163,1_150,1_156,1_130,1_132,1_162,1_137,1_105,1_141,1_129,1_170,1_122-ZEW2a

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'CanHandleEvent'

I inherited this system, as the previous developer left the organization, so I am at a loss as to what it going on. They upgraded the application  to Release v2014 vol 2.3 before leaving me this gem.

Any help is appreciated. Thanks.

BTW…I cannot give you sample code.

Show previous comments (9)

    This appears to be the same issue as found in Q555278.  I cant move the scrollbar on the page, click a DevExpress PageControl tab, click a input field, nothing without getting this error. I set the ieCompatibilityVersion from edge to empty string, and even set embedRequiredClientLibraries to true instead of false. I have rewritten the page even and it still does this. It is the only page in this whole application that does this. It it turning out impossible to debug/trace through the axd script file ad see what is throwing the error.

      My continued debugging is showing the errors occurring in the DXR.axd code under the FindHandler function. Continues to fail with:
      Unhandled exception at line 8949, column 5 in http://localhost:21871/DXR.axd?r=1_187,1_101,1_180,1_98,1_172,1_178,1_163,1_150,1_156,1_130,1_132,1_162,1_181,1_137,1_105,1_141,1_129,1_170,1_122-ZEW2a
      0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'CanHandleEvent'
      This is becoming extremely annoying.

      Alessandro (DevExpress Support) 10 years ago

        Hi,

        1. Would you please clarify if this issue is replicated only in IE11 with the Compatibility Mode enabled? Is it replicated when this mode is disabled or in other browsers?
        2. Please post the complete markup of master and content pages, so that we can use them to perform tests to reproduce the issue. I am sure we will be able to find a solution once we see the issue locally.

        Answers approved by DevExpress Support

        created 10 years ago (modified 10 years ago)

        Late last Friday evening I discovered that the whole problem is related to the use of the AJAXPro.dll and DevExpress together. The HttPHandler for both were causing conflicts. I don't know why but they were. Once I took all AJAX references out of the webpage and went strictly with DevExpress my issues with rendering/working with the webpage in IE11 were gone. I even followed a previous example of moving the reference of the DevExpress HttpHandlerModule after the AJAXPro reference in the webconfig and it did not work.

          Comments (1)
          Alessandro (DevExpress Support) 10 years ago

            Hi,

            We have not tested the AJAXPro library with our components and I am not sure about compatibility in this scenario taking into account that the AJAXPro library is written for old .NET Framework versions (1.1 and 2.0). Nevertheless, it is good news that you have localized the issue. Note that if you wish to implement AJAX/callback handling in an application that uses our controls, you can use the ASPxCallback and ASPxCallbackPanel components. I believe that they should be able to address any callback-aware scenarios. For example, review the following demos:

            Example - ASP.NET Callback Component Demo
            Update Panel Replacement - ASP.NET AJAX Callback Panel Control Demo

            Please feel free to contact us if you have any further difficulties. We will be happy to assist you.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.