I am in a project migrating ASP.NET web application to AWS(EC2) environment. One of the pages using UltraWebTree failed to generate gif image ('+', '-' gif button for each node) and saw Javascript error (Uncaught ReferenceError: igtree_initTree is not defined) in the console. Strange thing is the path/URL of the img src are all led/linked to Javascript file(Infragistics Common Script)
.
Hello Jonah,
Deploying an application over AWS is out of the support scope, additionally UltraWebTree which is part of the old toolset has been retired in 11.2 in 2011. I wasn’t able to find in our Supported Environments, whether the old toolset is compatible with AWS, so most likely it isn’t.
I was able to find few forum posts that may be helpful to you, which I am sharing below:
https://serverfault.com/questions/35365/javascript-errors-only-on-production-server
https://stackoverflow.com/questions/75322/sys-is-undefined
https://weblogs.asp.net/chrisri/demystifying-sys-is-undefined
Regards, Ivan Kitanov
It is not a matter of the excution order but the resources (image and script) generated through WebResource.axd and ScriptResource.axd are wrong. For example, when I use UltraWebTree, the images for tree nodes are all linked (img src attribute) to one Javascript library instead of respective gif file.
Interesting thing is the same code works fine in localhost and the original server (windows hosted) but not in AWS EC2.
I believe that the error might be coming from the order of execution of the scripts, for example your app might be trying to execute the igtree_initTree before the script has been loaded.
Another possibility might be the fact that the script is trying to access the resources of the ig_common folder, however it may not be present.
Please let me know if any of the suggestions helped or if you need any further assistance.
The library version is 11.1 (Infragistics4.WebUI.UltraWebNavigator.v11.1.dll) and IIS version of new environment is10 (It was IIS 6 in the old environment).