Welcome Guest Search | Active Topics | Sign In | Register

JS exception eo_GetObject not defined being thrown Options
Joan Darling
Posted: Tuesday, December 12, 2017 12:23:59 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Development environment: VS 2015
EO library: EO.web.dll 17.2.75.0

I've started getting a js exception "eo_GetObject not defined" since my last deployment on 12/12/2017 @ 12:21 PM. There have been no changes to the project or the IIS web server. DO you have any idea what might cause this?
eo_support
Posted: Tuesday, December 12, 2017 1:25:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

This usually means that our script fails to load, which typically occurs due to permission issues. You can try to debug your page with a debugger (Google Chrome's built-in Developer Tool is excellent for this purpose) and you should be able to see what gets loaded from our script Url. If you see an error page instead of the actual script, then you can trace back based on the information provided in the error page to troubleshoot your server side code/configuration to resolve the issue.

Thanks
Joan Darling
Posted: Thursday, December 14, 2017 2:30:10 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
I found the following in the source that was downloaded to the client in debug and production environments
<script type="text/javascript" src="/eo_web.ashx?id=f86e6e29-368d-4a3a-9b58-1f0fe6e8da32"></script>
<script type="text/javascript" src="/eo_web.ashx?id=712c4c2b-4443-4164-9b7b-288e9cee6157"></script>
<script type="text/javascript" src="/eo_web.ashx?id=1c2da796-1f27-45fa-b592-3d81b81c66ff"></script>
<script type="text/javascript" src="/eo_web.ashx?id=4330753f-1a0a-41f3-9e84-3bfcbe191891"></script>
<script type="text/javascript" src="/eo_web.ashx?id=dfd95bd3-67d0-4001-a3e3-41f3effc659c"></script><div id="eo_root"></div>
<script type="text/javascript" src="/eo_web.ashx?id=a604edc3-3dfa-43d9-b9d4-b2949a835b30"></script>
<script type="text/javascript" src="/eo_web.ashx?id=25a28e6f-66a5-4e5a-a52c-180181adc37e"></script>
<script type="text/javascript" src="/eo_web.ashx?id=d977a19c-0866-47c7-99db-d98a79dd1427"></script>
<script type="text/javascript" src="/eo_web.ashx?id=2086e64f-bd41-4c6d-8f64-2371706a182a"></script>
<script type="text/javascript" src="/eo_web.ashx?id=4e3856c2-e22b-423c-b617-ec1b0a749c0b"></script>
<script type="text/javascript" src="/eo_web.ashx?id=401a0f84-aa1e-45f9-8dcf-58e24357c3e8"></script>
<script type="text/javascript" src="/eo_web.ashx?id=63768bf4-fd57-4ee9-80db-f831a13a7f41"></script>
<script type="text/javascript" src="/eo_web.ashx?id=8723a7c3-aae5-4f18-9b1a-636d7857c143"></script>
<script type="text/javascript" src="/eo_web.ashx?id=c32fc2ae-7302-479f-a4cd-2ce856bfb730"></script>
<script type="text/javascript" src="/eo_web.ashx?id=b0dab8c6-8cac-48c9-825e-496804f3d85b"></script>
<script type="text/javascript" src="/eo_web.ashx?id=6a71db2b-e0ec-4787-a182-3a24c8ad597a"></script>

and found eo_GetObject in <script type="text/javascript" src="/eo_web.ashx?id=63768bf4-fd57-4ee9-80db-f831a13a7f41"></script> in the debug source but not in the production source, any ideas why they would be different?
eo_support
Posted: Thursday, December 14, 2017 2:32:36 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
What do you see in any of those script file in your production source?
Joan Darling
Posted: Thursday, December 14, 2017 2:38:14 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Source from <script type="text/javascript" src="/eo_web.ashx?id=63768bf4-fd57-4ee9-80db-f831a13a7f41"></script> from production server

//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2017 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 17.2.75.0 //********************************************************************************************************** EO17275.g.b=new Object();EO17275.g.c=new Object();EO17275.f.a=function(){return EO17275.g.c;};EO17275.f.b=function(){this.a=new Object();this.b=0;};EO17275.f.c=function(a){this.a[a]=true;var b=window["eo_get_poll_loader"];var c=b?b():null;if(c){if(!c.moduleLoaded())this.c();}else this.c();this.d();};EO17275.f.d=function(a,b){if(!this.e)this.e=new Array();EO17275.f.ao(this.e,[a,b]);this.c();};EO17275.f.e=function(){if(!this.e)return;var a;for(a in this.a){if(this.a[a]==false)return;}for(var b=0;b0))e[0].appendChild(c);};EO17275.f.g=function(a){return this.a[a];};EO17275.f.h=function(a,b){if(!this.g)this.g=new Array();EO17275.f.ao(this.g,[a,b]);this.d();};EO17275.f.i=function(){if(!this.g)return;var a;var b=false;var c=new Array();for(a=0;a0){c+=b.length;var d=a.indexOf(";",c);if(d<0)d=a.length;var e=a.substring(c,d);this.l=parseFloat(e);}return c;};EO17275.f.n=function(a){var b=a.indexOf("rv:")+3;if(b<0)return 0;var c=a.indexOf(')',b);if(c<0)return 0;var d=a.substr(b,c-b);var e=d.split('.');var f=new Array();for(var g=0;g<3;g++){if(e.length>=g){try{f[g]=parseInt(e[g]);}catch(e){}}}d=f[0].toString()+"."+f[1].toString();if(d>0)this.l=parseFloat(d);return d;};EO17275.f.o=function(a){var b=a.indexOf("netscape");b=a.indexOf("/",b+1);var c=a.substr(b+1);return parseFloat(c);};EO17275.f.p=function(){var a=navigator.userAgent.toLowerCase();if(this.m(a,"edge"))this.n="IE";else if(this.m(a,"opera"))this.n="OP";else if(this.m(a,"msie")){this.n="IE";if(a.indexOf("mac")>=0)this.o=true;}else if(this.m(a,"netscape")){this.n="NS";this.l=EO17275.f.o(a);}else if(this.m(a,"konqueror"))this.n="KQ";else if(this.m(a,"safari")){this.n="SA";this.p=a.indexOf("windows")>0;}else if(this.m(a,"omniweb"))this.n="OM";else if(this.m(a,"webtv"))this.n="TV";else if(this.m(a,"icab"))this.n="IC";else if(this.q(a))this.n="MZ";if(a.match(/trident\/7\./i)&&(this.l==11))this.n="IE";this.r=a.indexOf("chrome")>0;this.s=a.indexOf("edge")>0;if((a.indexOf("ipad;")>0)||(a.indexOf("android")>0))this.t=true;};EO17275.f.l.prototype.u=EO17275.f.p;EO17275.f.l.prototype.m=EO17275.f.m;EO17275.f.l.prototype.q=EO17275.f.n;EO17275.f.q=function(){var a=EO17275.f.a();if(!a.v){a.v=new EO17275.f.l();a.v.u();}return a.v;};EO17275.f.r=function(){return EO17275.f.q().n;};EO17275.f.s=function(){return EO17275.f.q().r;};EO17275.f.t=function(){return EO17275.f.q().s;};EO17275.f.u=function(){return EO17275.f.q().l;};EO17275.f.v=function(){return(EO17275.f.r()=="IE")&&(EO17275.f.u()<6);};EO17275.f.w=function(){return(EO17275.f.r()=="IE")&&(EO17275.f.u()<5.5);};EO17275.f.x=function(){return(EO17275.f.r()=="IE")&&(EO17275.f.u()>=9);};EO17275.f.y=function(){return(EO17275.f.r()=="IE")&&(EO17275.f.u()>=11);};EO17275.f.z=function(){return(EO17275.f.r()=="IE")&&(EO17275.f.u()>=5.5)&&(EO17275.f.u()<11);};EO17275.f.aa=function(){return EO17275.f.q().p;};EO17275.f.ab=function(a){if(!a)return document;if(a.ownerDocument)return a.ownerDocument;return document;};EO17275.f.ac=function(a){return EO17275.f.ab(a).compatMode=="CSS1Compat";};EO17275.f.ad=function(a){return EO17275.f.ab(a).compatMode!="CSS1Compat";};EO17275.f.ae=function(){return EO17275.f.q().t;};EO17275.f.af=function(a){if(EO17275.f.ae())return 0;else return a;};EO17275.f.ag=function(a){var b=EO17275.f.q();if(b.n=="SA")return a.insertRow(-1);else if((b.n=="IE")&&b.o){var c=document.createElement("TR");a.appendChild(c);return c;}else return a.insertRow(a.rows.length);};EO17275.f.ah=function(a){var b=EO17275.f.a().v;if(b.n=="SA")return a.insertCell(-1);else if((b.n=="IE")&&b.o){var c=document.createElement("TD");a.appendChild(c);return c;}else if((b.n=="IE"))return a.insertCell(-1);else return a.insertCell(a.cells.length);};EO17275.f.ai=function(a,b,c){var d;var e=EO17275.f.ab(a);if(b){d=e.createElement(b);if(c)d.innerHTML=c;}else{d=e.createTextNode(c);}a.appendChild(d);return d;};EO17275.f.aj=function(a,b,c,d){var e=EO17275.f.ai(a,"TABLE");e.border=b==null?"0":b;e.cellSpacing=c==null?"0":c;e.cellPadding=d==null?"0":d;return e;};EO17275.f.ak=function(a,b){a[a.length]=b;};EO17275.f.al=function(a,b,c){if((b<0)||(b==a.length))EO17275.f.ak(a,c);else{var d=a.length;for(var e=d;e>=b;e--)a[e+1]=a[e];a[b]=c;}};EO17275.f.am=function(a,b){if((b<0)||(b>=a.length))return;for(var c=b;c");if(!b)b="";return b;};EO17275.f.bk=function(a,b){a=EO17275.f.bi(a,b);return EO17275.f.bj(a);};EO17275.f.bl=function(){this.an=new EO17275.f.ax();};EO17275.f.bm=function(a,b,c,d){this.an.ai([a,b,c,d]);this.ao();};EO17275.f.bn=function(){if(this.ap)return;var a=this.an.ah();if(!a)return;var b=this;var c=EO17275.f.bg();this.ap=c;var d=a[2].apply(this,[a[1]]);c.open("POST",a[0],true);c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c.setRequestHeader("delta","true");c.setRequestHeader("Cache-Control","no-cache");c.onreadystatechange=function(){if(c.readyState&&((c.readyState==4)||(c.readyState=="complete"))){a[3].apply(b,[a[1]]);b.ap=null;b.ao();}};c.send(d);};EO17275.f.bo=function(a,b,c){if(a)a=a+"&";a=a+b+"="+EO17275.f.bh(c);return a;};EO17275.f.bp=function(){return this.ap;};EO17275.f.bq=function(){return!this.ap&&(this.an.ag()==0);};EO17275.f.bl.prototype.aq=EO17275.f.bm;EO17275.f.bl.prototype.ao=EO17275.f.bn;EO17275.f.bl.prototype.ar=EO17275.f.bo;EO17275.f.bl.prototype.as=EO17275.f.bp;EO17275.f.bl.prototype.at=EO17275.f.bq;EO17275.f.aaa=function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d;};EO17275.f.aab=function(a,b,c,d,e,f){var g=c[f];EO17275.f.aaa(c,f,e-1);var h=d;var i;for(i=d;id){var f=Math.floor((d+e)/2);f=EO17275.f.aab(a,b,c,d,e,f);EO17275.f.aac(a,b,c,d,f);EO17275.f.aac(a,b,c,f+1,e);}};EO17275.f.aad=function(a,b,c){EO17275.f.aac(a,b,c,0,c.length);};EO17275.f.aae=function(a,b){if((a==null)&&(b==null))return 0;else if(a==null)return-1;else if(b==null)return-1;else{if(a.localeCompare)return a.localeCompare(b);var c=a.length;var d=b.length;var e=Math.max(c,d);for(var f=0;f=0){b+=8;var c=a.indexOf("\"",b);if(c>0)return a.substring(b,c);}return null;};EO17275.f.abm=function(){if(EO17275.f.abo.x)return;if(document.styleSheets.length>0){EO17275.f.abo.x=new Object();for(var a=0;a1){a=c[1].trim();a=a.replace(/'|"/gi,"");}}if(!a)a="";return a;};EO17275.f.acb=function(a){if((EO17275.f.r()=="IE")&&(EO17275.f.u()<9))a.style.cursor="hand";else a.style.cursor="pointer";};EO17275.f.acc=function(a){a.style.cursor="default";};EO17275.f.acd=function(a,b,c,d,e,f){var g=new Date();g.setTime(g.getTime());if(c){c=c*1000*60*60*24;}var h=new Date(g.getTime()+(c));document.cookie=a+"="+escape(b)+((c)?";expires="+h.toGMTString():"")+((d)?";path="+d:"")+((e)?";domain="+e:"")+((f)?";secure":"");};EO17275.f.ace=function(a){var b=document.cookie.split(';');var c='';var d='';var e='';var f=false;for(i=0;i1){e=unescape(c[1].replace(/^\s+|\s+$/g,''));}return e;break;}c=null;d='';}if(!f){return null;}};EO17275.g.d.j("ldr");
Joan Darling
Posted: Thursday, December 14, 2017 2:39:16 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Source from <script type="text/javascript" src="/eo_web.ashx?id=63768bf4-fd57-4ee9-80db-f831a13a7f41"></script> from debug environment
//********************************************************************************************************** // EO.Web Script Library. Copyright (C) 2006-2017 Essential Objects, Inc. All rights reserved. // Visit Us on the Web: http://www.essentialobjects.com // Version: 17.2.75.0 //********************************************************************************************************** EO17275.g.axk=0;EO17275.g.axl=1;EO17275.g.axm=2;EO17275.f.adpf=function(a){if(a)this.adom(a);};EO17275.f.adpg=function(a){this.afy(a[0]);this.adon(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27]);};EO17275.f.adph=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){this.adoo=a;this.aafm=b;this.aany=c!=null?c:EO17275.g.aea;this.aaxg=d;this.adop=e;this.adoq=f;this.ador=g;this.aaxi=h;this.bbw=i;this.aazo=j;this.aazt=k;this.ados=l;this.adot=m!=null?m:"{remaining} more item(s) available.";this.adou=n!=null?n:"No more items available.";this.adov=o!=null?o:"Loading more items...";this.adow=p;this.adox=q;this.adoy=r;this.aaqw=s;this.aem=this.aazj(t);this.adoz=this.adpa();};EO17275.f.adpi=function(a,b){this.ahc(a);var c=this;this.adpb=b!=null;this.adpc=parseInt(b);if(typeof(this.adpc)!="number")this.adpc=0;this.aii=document.getElementById(this.aaf);if(this.adoo)EO17275.f.abf(this.aii,this.adoo);this.ato=document.getElementById(this.adox);this.acjg=document.getElementById(this.aaf+"_b");this.adpd=document.getElementById(this.aaf+"_bsOuter");this.abay=document.getElementById(this.aaf+"_bs");this.adpe=document.getElementById(this.aaf+"_f");this.adpf=document.getElementById(this.aaf+"_sud");this.adpg=document.getElementById(this.aaf+"_sdn");this.ats=document.getElementById(this.adoy);this.adph=document.getElementById(this.aaf+"_mi");this.aii.style.position="relative";this.aeh(this.aii,true);if(this.adpb){if(this.adpe){this.adpe.style.position="absolute";this.adpe.style.bottom="0px";}this.adpd.onscroll=function(){c.abcf();}}if(!EO17275.f.ae()){this.adpi=new EO17275.f.aaz(this,this.abay,false,"items");EO17275.f.alb(this.abay,EO17275.g.abf,this);}else{this.abay.ontouchstart=function(d){c.adr(d);}}EO17275.f.anc(this.abay);this.adfm(0);if(this.adpb){this.adpj();}if(this.adph){EO17275.f.abf(this.adph,this.ados);this.adpk();var e=new Object();e.afe=function(){c.requestMoreItems();}; EO17275.f.alb(this.adph,EO17275.g.abi,e);}this.acn=true;};EO17275.f.adpj=function(){this.ahd();if(this.adpi){this.adpi.bj();this.adpi=null;}};EO17275.f.adpk=function(){if(this.adpl)return;this.adpl=true;var a=this;setTimeout(function(){a.abcf();},200);};EO17275.f.adpl=function(a){var b=new Array();if(a){for(var c=0;cthis.aem.length){var h=Math.round(g*1.2);g=Math.round(g*this.adow/this.aem.length);if(g>h)g=h;}if(EO17275.f.r()=="IE"){var i=EO17275.f.aah(this.acjg);g+=EO17275.f.aag(i.paddingBottom);}this.abay.style.height=EO17275.f.aak(g);}this.adpo();};EO17275.f.adpo=function(a){if(!EO17275.g.l)return null;var b=null;if(!a)a=window.event;if(a){var c=EO17275.f.afi(a);while(c){if(c.eo_ade){b=c.eo_ade;break;}c=c.parentNode;}}return b;};EO17275.f.adpp=function(a,b,c){if(this.isBusy())return;if(c=="items"){var d=this.abyi(b);if(!b)b=window.event;this.aahz(d,b);}};EO17275.f.adpq=function(a,b){if(this.abfg!=a){if(this.abfg)this.abfg.bis(false);this.abfg=a;if(a){a.bis(true);if(this.aazt){this.acs("ClientSideOnItemOver",this.aazt,[this,a,b]);}}}};EO17275.f.adpr=function(a){this.adw();if(this.isBusy())return;if(!a)a=window.event;var b=this.abyi(a);if(b){this.bfj(b,a);if(eo_SetComboBoxValue(this,b.bgd,null,null,true))return;if(this.bbw)this.aea();}};EO17275.f.adps=function(a,b,c){if(a&&!a.getEnabled())return;if(a&&!c){var d=this.aafm&&EO17275.f.arz(b,this.aany);if(d){a.setSelected(!a.getSelected());if(b.shiftKey){if((EO17275.f.r()!="SA")||!EO17275.f.ae())EO17275.f.ahr(this,b);}return;}}for(var e=0;eb){var c=b;b=a;a=c;}for(var d=0;d=a)&&(d<=b)){this.aem[d].setSelected(true);}else{this.aem[d].setSelected(false);}}var e=this.aem[b];if(e)e.ensureVisible();};EO17275.f.adpu=function(){var a=EO17275.f.aco(this.aii,"ComboBox");if(a)a.ablp(false);var b=this.adpa();if(b!=this.adoz){b="+"+b;}return new EO17275.f.aeo(b);};EO17275.f.adpv=function(){var a="|";for(var b=0;bthis.aem.length?this.adot:this.adou;var b=this.adow;var c=this.aem.length;var d=b-c;a=a.replace("{total}",b.toString());a=a.replace("{loaded}",c.toString());a=a.replace("{remaining}",d.toString());if(a){this.adph.innerHTML=a;this.adph.style.display="";}else{this.adph.style.display="none";}this.adpj();};EO17275.f.adpx=function(){if(this.adpr)return;this.adpr=true;var a=this;setTimeout(function(){if((a.adow>a.aem.length)&&(a.adpd.scrollTop+a.adpm>a.adpn)){a.requestMoreItems();}a.adpr=false;},100);};EO17275.f.adpy=function(a){var b=this;var c=eo_GetObject(this.aaqw);if(!c||c.aali){setTimeout(function(){b.adps(a);},100);return;}if(a=="moreitems"){if(this.adph&&this.adov)this.adph.innerHTML=this.adov;}c.aall=[[this.acf,a]];c.aali=function(d,e){b.abfr(a,e);c.aall=null;c.aali=null;};this.aea(a);};var eo_ListBox_UpdateData;EO17275.f.adpz=function(a,b){eval(b);var c=this.aazj(eo_ListBox_UpdateData[0]);var d=eo_ListBox_UpdateData[1];this.adow=eo_ListBox_UpdateData[2];var e=this.aem.length;if(a=="update"){this.aem=c;this.abay.innerHTML=d;}else if(c.length){var f;for(f=0;f0){f--;this.adpq=this.aem[f];if(g)this.adpt(e,f);else this.bfj(this.aem[f],a,true);}}else if(b==EO17275.g.acb){if(fthis.aem.length)this.requestMoreItems();}return false;}else if((b==EO17275.g.acj)||(b==EO17275.g.aci)){var h=this.getSelectedItem();if(h){if(eo_SetComboBoxValue(this,h.bgd))return false;if(this.bbw)this.aea();}}else if(b==EO17275.g.acl){if(eo_SetComboBoxValue(this,null,null,true))return false;}};EO17275.f.adqb=function(a){if(!a||!a.aii)return;var b=EO17275.f.aah(this.acjg);var c=EO17275.f.aag(b.paddingTop);var d=EO17275.f.akr(a.aii,this.abay);var e=d.aeo+c-this.adpd.scrollTop;var f=EO17275.f.ake(a.aii);var g=null;if(e+f>this.adpm){g=d.aeo+c+f-this.adpm;}else if(e
eo_support
Posted: Thursday, December 14, 2017 2:45:59 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Can you PM us your production Url so that we can take a look here?
eo_support
Posted: Thursday, December 14, 2017 3:17:18 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

Please enable physical script file according here:

https://www.essentialobjects.com/doc/web/installationanddeployment/deploy.aspx

It appears that there are something on your server (often a caching module) that have incorrectly served the same content for all of our JavaScript files. Each of those eo_web.ashx with a different Id is a different script file. Your server is serving the same content for all of them.

Thanks!
Joan Darling
Posted: Monday, December 18, 2017 2:29:49 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
I used option 3 and it fixed the problem, thanks...
<appSettings>
<add key="eo_ScriptLocation" value="~/eo_script"></add>
</appSettings>
eo_support
Posted: Monday, December 18, 2017 2:33:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Great. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.