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.
Could there possibly be some issue in the webconfig that would cause this issue? The production version of this application running the previous version of DevExpress does not have these issues.
Here is the webconfig if that helps.
Also, the error (see below) is occurring with every click event, scroll, user action on the page.
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'
Also, we are using IE 11 version 11.0.12
Hello Michael,
You web.config looks fine. Currently, it's difficult to determine the cause of the issue without knowing why it occurs. Would you please send us the following information:
- A screencast illustrating the issue on your side (for example, using the Jing Tool).
- ASPx markup of your control/page that allows reproducing the issue from scratch or a simple runnable project.
P.S. You seem to be using an older build of our components (according to the report's Build field). I recommend you update to v14.2.4 and check if the issue persists. Please visit our version info page to learn about the most recent versions of our products, and obtain instructions on how to update them.
Your time and cooperation are greatly appreciated.
Providing a sample of the markup is not as easy as one may think. This is a complex web facing application and without all elements from the UI to the database in the sample project you will not be successful in duplicating it. There is also sensitive data in this system and I am not authorized to provide any image of the application without being able to redact it. I will try the upgrade, but if that does not work we are at square one again.
The attached screen captures are about as good as we are going to get. The first two captures occur when navigation to the page begins and prior to rendering the screen. The third screen capture occurs after the page is rendered and happens on every user action taken on the screen (i.e. scrolling, mouse clicks, etc)
Hi,
While I appreciate it that you provided screenshots, the cause of the issue is still unclear. If you cannot provide a self-contained sample that replicates this issue, I can only recommend you try the following technique. Simplify the problematic page by removing controls from it one by one. If you see that the issue is not replicated, the last control you removed might have a potential cause. I hope this will help you diagnose the issue locally. I am looking forward to your feedback.
I have done some further debugging of the application and I can say that the application successfully fires the webpage Page_Load event and gets the data form the database. The associated JavaScript code for the page successfully obtains the data from the backend via Ajax calls, and populates the elements on the page and subsequent divs on that page. It even loads the master page as well because I can step through the code and see it. But before the entire page (master page and content are rendered on the screen it steps in the AjaxControlToolkit code (somewhere/somehow) and blows up with the aforementioned errors. I checked the current AjaxToolKit version and its 3.5.7.123. Our target framework is 4.5.1. Since its having problems in the AjaxToolKit I went and did a web search on this. It appears that CodePlex (the version I have) no longer maintains this but instead DevExpress does. So my question is are there potential compatibility issues with the toolkit version and the target framework for the web application?
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.
Hi,