Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft JScript runtime error 1

Status
Not open for further replies.

whateveragain

Programmer
Apr 20, 2009
92
US
I upgraded my IE to version 9 and now when I run asp.net apps that were once working get javascript errors. I didn't write these scripts, it's the behind-the-screen code. I can hit ignore and continue, but it's annoying. I tried to look to uninstall this IE 9, but it seems that's no longer an option. This is the error I keep getting for every page in my asp.net app. How can I turn this debugging off? I disabled debugging in the browser, but that doesn't seem to be the problem. It seems to be associated with ASP.net.

Microsoft JScript runtime error: Invalid callign object
 
it's not asp.net, directly... asp.net is a server side language. what you are experiencing is a client side error. MS javascript error handling is lacking to say the least, but there should be some information from the details you can use to begin to track down the issue.

you can also install the IE developer tool bar which provides a better debugging experience.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
I installed the IE developer tool bar thinking it would overwrite the existing developer tool, but it didn't. I'm still getting those errors. Do you know how to shut it off?
 
correct, the toolbar won't fix the problem. it will help you diagnose the problem. you don't "shut them off" you resolve the bugs in the script so they do not occur in the first place.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
I didn't write the javascript. I don't know javascript. So you're saying my vb.net caused a javascript error?
 
no, vb.net is completely separate from javascript. what can happen is vb.net is used in conjunction with asp.net and webforms to render a webpage. the resulting webpage may contain javascript. the javascript may contain errors.
it would be good to understand how all the languages and technology work in conjunction with each other so you can better develop and diagnose the system.

but taking a step back from code; examine what changed.
1. IE was updated from 7/8 to 9
2. MS pushed a number of security patches recently which were known to cause problems is certain cases.

I would bet the problem is how IE 9 is handling javascript. However since you cannot change IE 9, you need to adjust the javascript. If the JS is auto-generated via webforms, then you might need to look for an update from MS addresses the problem of JS and IE 9.



Jason Meckley
Programmer

faq855-7190
faq732-7259
 
1. IE was updated from 7/8 to 9 - is what happened. I downloaded Google Chrome browser and made it my default and it now works. Eventually, I'll have to figure this out as that's the direction MS is going.

2. If the JS is auto-generated via webforms, then you might need to look for an update from MS addresses the problem of JS and IE 9. - this is the case, but I didn't see an update when I updated all of my software. Perhaps one'll be coming soon.
 
IE9 is know to have problems with JS. My wife's laptop autoupdated IE to IE9. We noticed that any javascript on any site was not working properly, but worked correctly on my PC with IE8. The only way I got the sites to behave properly was to set IE9 to view ALL sites in "compatibility mode".
Although this will work for you, most people will not know to do this and will just think your site is broken, as did I, until I realized it was affecting all sites. You will have to search around and see if there are any fixes that can be done to get the JS to work in IE9 until MS puts out a fix. But don't depend on that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top