Hi,
I'm using webpanel wrapped with in a Async control. I get java script error sometimes. Its very wired as it comes up only sometimes and there is no specific pattern. I did try to debug and it points to ig_CreateWebPanel line of code. This is very critical to the project. Would like to know if there is anyway I can trap/mask this error using javascript.
Thanks in advance,
Kiran
Kiran,
Can you provide more information about what seems to be causing the error? If so, I recommend that you submit a support request to provide us that information. A Developer Support Enigneer will use this information to research your issue in-depth.
A good thing to include is a sample project that we can run and debug that replicates this issue - even if it replicates the issue intermittently.
I found out that it happens only in Load balancing setup. we have 2 servers configured to a load balancing server. So the requests goto either of the servers as defined by the Microsoft load balancing server. I was able to reproduce the same. We have refrsh link in the page which calls location.reload() JavaScript function. thats when its throws up the script error. Seems like its not loading the objects properly in that setup. It works fine in a normal env.
Are you using our JavaScript files as embedded as resources in our assemblies (which is the default), or are you using physical JavaScript files?
If you're using the JavaScript files from embedded resources, you will likely need to have a session state server. That way, a session established on one machine is treated as the same session even if the request is actually handled by a different machine. This is necessary because an identifier unique to the session is included in the information that ASP.NET includes in the rendered HTML so that the webpage can determine how to get at the resource.
If you're using physical JavaScript files, then it should suffice to make sure that the files are on the same virtual path on all servers.
Please let us know whether or not this information helps.