Solved

asp.net javascript error

Posted on 2013-02-01
6
218 Views
Last Modified: 2013-02-07
We have this app that runs on over 6000 client machines. With this one customer the app throws an exception. I've traced it back to some callback javascript. I turned off their virus software thinking it was that. No luck. Any ideas on why it would be failing? See attached application error.
0
Comment
Question by:glenn_r
  • 2
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

by:mcnute
ID: 38844315
no error attached so far....
0
 

Author Comment

by:glenn_r
ID: 38844439
attachment
aspneterror.png
0
 
LVL 11

Assisted Solution

by:mcnute
mcnute earned 170 total points
ID: 38844462
This says that the variable in the highlighted line wasn't set before using it. Set the variable with its expected content and then refresh the page.

TrainingCallbackHander =  //probably a function

Open in new window


I'm not aspx expert, basically it's saying that your TrainingCallbackHandler isn't defined. So or it has no access to this function or it hasn't been created in the first place.

But this is as fare as I can go with aspx.
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 38

Expert Comment

by:Tom Beck
ID: 38844801
I don't have a solution, but it seems pointless to look for fault with asp.net when the app works as expected in over 6,000 machines. That one machine seems to be corrupting communications between server and client. Maybe a piece of malware is trying to inject something into the stream. Maybe it's just a browser setting or a malfunctioning browser. Have you tried a different browser? This is a web app, right?
0
 

Author Comment

by:glenn_r
ID: 38845316
this customer has 30 machines with different browsers and they still get the error
also tried to disable virus protection software and same error
it happens intermittently, not all the time, they could be working and all of a sudden, error, i can induce this by having a clicking frenzy on the form and it will error out. I also went directly to the web server thinking it was latency but got the same error there. What tools can I use to debug/troubleshoot client side scripts request/response javascript callbacks etc?
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 170 total points
ID: 38845452
For debugging request/response there's Fiddler - HTTP Debugging Proxy. And of course there's always Firebug on the Firefox browser for debugging javascript. With Firebug you get a console for displaying errors and a watch list for monitoring variable values. No editing script though. Both are free.

30 machines on one network experiencing intermittent problems with the app? That sounds like a network problem to me. Maybe a bad switch or a bad NIC in the DNS server dropping packets occasionally. Or an IP address conflict on the network causing collisions on the data switch. They may not notice anything more than minor delays during regular web surfing. Web apps require constant server/client communication and session ids must be maintained for each client during all postbacks. That requires a reliable connection to the internet and a reliable DNS host. Don't get suckered into fixing a network problem if your only responsibility is the application.

You can download and install Wireshark on one of the 30 machines and set it to capture all traffic on port 80 (or 443 if you are on a secure socket layer) . Stress test the app during capture to see if any packets are being dropped.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question