I'm not sure if this is the right forum for this, (I posted this also in the Config / Deploy forum) but can anyone tell me why I often get a "Can not init Button", "Can not init Tab", "Can Not init Grid" java scritp error message?
Often I get the little "warning" error message in the bottom left corner of IE. If I double click the yellow "yield sign" I'll get a message that tells me basically that at Char N Line X can not init control. Then the browser window stops responding to all javascrip, I can't click a button, double click a grid view row, etc.
When viewing the source of the page, I see the javascript Try/Catches and the error message, but I still don't know what is causing it.
Has anyone seen this before, any ideas on what could cause it and what I can do to fix it.
Thanks
-- Joe --
This can occur due to numerous causes but is usually due to the same problem. The message you report usually entails that the scripts for the controls are not being loaded and when the intialization scripts are run, the functions for initializing cannot be found. What is the context of the behavior you see? Did you just upgrade? Is this a brand me application? What version of our controls are you using in what development environment?
For a quick fix (that may not fix your issue ) you can just redirect the scripts by using the technique in the following Knowledge Base:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6158
Also, make sure you do not have the JavaScriptFileName and JavaScriptFileName properties set if you are working with the CLR 2.0 or CLR 3.5 NetAdvantage controls. This will ensure that the control uses the scripts that are embedded as resources in the dlls. In CLR 1.x this is necesssary as the scripts are not embedded.
If you are runnign this through IIS, there is a setting that needs to be set for files with axd extensions so that the embedded resources can be used.
If you get this intermittently then it may have somethign to do with errors in your script or possibly something to do with AJAX if you are using any. Again, a lot of this depends on the context in which the error occurs.
We are running Version=6.3.20063.1072. The application is a little over a year old. What is the reallly frustrating part is that this problem doesn't always happen. In fact it is pretty infrequent, but when it does happen it prevents my users from effectively using the page.
And it only seems to affect users at our remote sites. From my office where the web server is located 20 feet from me I never see the "Can't init" error.
The context in which these errors happens varies widely, but usually when loading a grid with data. Users are assigned cases and each case is a record in their worklist (grid).
I'll take a look at that KB article. Can you tell me which setting in IIS that needs to be set to allow the axd extensions to work properly? Not using any Ajax, but I do make use of the Async ability of the WebTab and use Warp panels on a couple of other pages.
I don't think that it is a script error, simply because I can open the user's worklist on my PC and have no problem, then PC Anywhere into the user's PC and bring up the same worklist and I have a problem. Also there was a problem opening a case where the user encountered the "Can't Init ..." error. Then two days later, with no code changes, the error stopped occuring!
Maybe somehow the axd file is not being transmitted fully to the client or gets corrupted in some way?
Did you try any of the suggestions in the first response on page 1?
Essentially this error occurs because it cannot find the script files. If you upgraded from CLR 1, then it is most likely because you have the JavaScriptFileName properties set on the controls. The easiest way to check is to look at the rendered markup by doing a view source on the page and finding where the page is trying to load the scripts from. If you see direct links to javascript files, make sure those files are there. If you see webresouce.axd for the script tags then make sure your iis has the setting for the axd extension. You should be able to fine more detail on this in the thread.
If you still have issues, let me know what you have tried and any other information you think is pertinent.
After checked the IIS settings and webconfig. I was at a loss. Then I remembered that a couple days ago I added a script from weather.com that provides a weather widget into my master page. For some reason this javascript was causing the issue. I took it out and things work fine again. This was the script that caused the issue. Strange.
I am assuming that the weather.com script has some sort of error and is leading to ours not being read correctly?
the weather.com script does work ok when the page loads, but has issues on post backs since it is also in the ajax update panel. I removed it for now since it was not a requirement for what I was doing. Maybe as the WebResource.axd file was being created it ran into a problem locating this script and thus didn't complete and inclue the infragistics scripts????
I tried to reproduce your issue in various scenarios but it seemed to work ok. I would probably need a small sample with the necessary parts that reproduce to tell you exactly what is going on.