Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Javascript , +
when I run my program that I write sometimes visual studio gives me this error:
 
Microsoft JScript runtime error: Invalid origin: https://s-static.ak.fbcdn.net
 
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(e.originalEvent.data)
Posted 10-Dec-11 20:36pm
Edited 11-Dec-11 2:33am
v5
Comments
Member 8604353 at 29-Jan-12 7:57am
   
Microsoft JScript runtime error: Invalid origin: https://s-static.ak.fbcdn.net
 

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(e.originalEvent.data)
Nolensville at 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
good
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 Ask.com 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 static.ak.fbcdn.net 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 facebook.com. 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 facebook.com, making it faster too. The domain fbcdn.net 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 "https://s-static.ak.fbcdn.netcdn.net" was part of widget being created by Internet Explorer. Clicking on the widgets properties in debugger revealed the URL: "http://apnwidgets.ask.com/widget...." 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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,240
3 George Jonsson 3,584
4 Gihan Liyanage 2,625


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2014
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