Click here to Skip to main content
13,005,644 members (65,903 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +
when I run my program that I write sometimes visual studio gives me this error:

Microsoft JScript runtime error: Invalid origin:

what should I do?

It shows me some code and part of that is :

$(window).bind("message",function(e){if(!e||!e.originalEvent){return}if(e.originalEvent.origin!=="chrome://browser"){throw new Error("Invalid origin: "+e.originalEvent.origin)}var f=JSON.parse(
Posted 10-Dec-11 20:36pm
Updated 11-Dec-11 2:33am
Member 8604353 29-Jan-12 7:57am
Microsoft JScript runtime error: Invalid origin:

what should I do?

It shows me some code and part of that is :

$(window).bind("message",function(e){if(!e||!e.originalEvent){return}if(e.originalEvent.origin!=="chrome://browser"){throw new Error("Invalid origin: "+e.originalEvent.origin)}var f=JSON.parse(
Nolensville 27-Nov-12 12:47pm
Did you ever get an answer?? I just updated to visual studio 2010 and am getting this error too.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

After a long day of googling on the issue, I was able to get rid of the java script by disabling the ask toolbar in internet explorer. I don't know if that will be the solution for everyone but from researching the problem it does seem that most had the error coming from dynamic java script created by the browser and not a java script for the application that they were working on.

To disable the ask toolbar go into internet explorer. On the internet explorer menu choose tools and then choose manage add ons. Once the wizard opens choose the toolbars and extensions I choose the toolbar in the list of items and disabled it.

Details for those that may have a different widget causing the error:

How I got to that is I found out that stands for static akamai facebook content delivery network. For even big webservers, many times it isn't efficient to have common items like the facebook logo or ads from Akamai (and others) have built efficient content caches all over the world that route to the closest to you (network wise) cache. This in theory makes things faster as you hit a local cache, and lowers the hits on, making it faster too. The domain is actually run by Akamai, on facebook's behalf.Other websites probably have a bit of HTML/Javascript code hitting 'facebook' but in reality hits facebook and the facebook akamai servers as well.

In googling on the issue today, I had come across this:
"Running a multisite and for some reason the widgets do not work in Internet Explorer however they work fine for Firefox.
I just updated everything to see if that would fix and still no luck.
Any ideas on what to do?"
The solution for that problem was:
"Sounds like a javascript issue (which IE is notorious about anyway). Try deactivating the plugins one at a time until things begin working and you'll have found the culprit.
You can also quickly deactivate all plugins and see if everything works - then you'll know it's a plugin and can go one at a time to find it."

In the visual studio 2010 when the debugger broke for the error. I notice that the "" was part of widget being created by Internet Explorer. Clicking on the widgets properties in debugger revealed the URL: "" Since I don't use the toolbar, I went in and disabled it. This stop the widget from being made which also stopped the offending javascript "ticker_37.js?build=202" from being built and executed.

Cheers and Hope this works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100