Skip to main content

Sys is undefined, Type is undefined

Problem
So today I came across a strange error in SharePoint/Project Online.
3 users were not able to see the Project Center, Resource Center or add new items to a document library.
The issue was clearly related to their PC's as other users had the same problem on their PC's and they didn't have the problem on other PC's.
Everybody had the same version of Internet Explorer, Same regional settings and same language installed.

In their IE log they were all receiving the following error.
 SCRIPT5009: 'Sys' is undefined   
 projects.aspx, line 124 character 219  
 SCRIPT5009: 'Sys' is undefined   
 projects.aspx, line 150 character 1  
 SCRIPT5007: The value of the property 'WebForm_InitCallback' is null or undefined, not a Function object   
 projects.aspx, line 656 character 1  
 SCRIPT5007: The value of the property '$get' is null or undefined, not a Function object   
 shell.js?rev=YwnNMDxuVwsNnI9A1oL38w%3D%3D, line 2 character 50132  
 SCRIPT5009: 'Type' is undefined   
 sp.core.js?rev=7ByNlH%2BvcgRJg%2BRCctdC0w%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 sp.ui.dialog.js?rev=IuXtJ2CrScK6oX4zOTTy%2BA%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 sp.runtime.js?rev=9sKdsC9N6p2BiRk3313M7Q%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 sp.js?rev=SpGB4%2FzYmCWpwoPWNG2dsg%3D%3D, line 2 character 1  
 SCRIPT438: Object doesn't support property or method 'registerInterface'   
 cui.js?rev=k%2B4HtUzT9%2B3mSycgD7gPaQ%3D%3D, line 2 character 132  
 SCRIPT5009: 'Type' is undefined   
 sp.ribbon.js?rev=F%2BUEJ66rbXzSvpf7nN69wQ%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 projectserverscripts.js?rev=wLWEB16RvL7LvVwBTEDczw%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 pagepropertymgr.js?rev=MSfviAZ5MiJZfNsfZFcIEw%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 remotetextconv.js?rev=SvbL5%2Fn%2FylnTsF%2FASnvAng%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 webmethodmanager.js?rev=QZWPalD63GAq0Ux6QiTvww%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 projectframework.js?rev=5poW1un5idh68Af5W7%2By%2FA%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 gridsatellite.js?rev=OD4g9TDABejWnsQti9BHCg%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 utility.js?rev=6L1OxKcWB8r9YEeRFq7iYQ%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 dom.js?rev=f7dn0H6JVBq%2BJjo%2Fz2ZJRA%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 projectcentersatellite.js?rev=hlKj0a968OT2D7gm%2FuKlMQ%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 sp.ui.combobox.js?rev=166SKYsDoffDAabXKBONxw%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 jsgrid.js?rev=mx0FnsqZMQTgnLRUymCf8w%3D%3D, line 2 character 1  
 SCRIPT5009: 'Type' is undefined   
 sp.datetimeutil.js?rev=c1q2E%2FwVfTjFPk%2BMTmPvDg%3D%3D, line 2 character 1  
 SCRIPT5007: Unable to set value of the property 'GanttPane': object is null or undefined   
 jsgrid.gantt.js?rev=QeMlynX3yiGsrTWH8GAGQg%3D%3D, line 2 character 1  
 SCRIPT5009: 'WebForm_SaveScrollPositionSubmit' is undefined   
 projects.aspx, line 832 character 1  
 SCRIPT5007: The value of the property '$get' is null or undefined, not a Function object   
 shell.js?rev=YwnNMDxuVwsNnI9A1oL38w%3D%3D, line 2 character 5898  
 SCRIPT5007: The value of the property '$addHandler' is null or undefined, not a Function object   
 shell.js?rev=YwnNMDxuVwsNnI9A1oL38w%3D%3D, line 2 character 1727  

This didn't tell me much other than it looks like something is broken in IE. Google and Bing gave a lot of results, but all of them were  related to programming and ASP.Net. I could not find much related to SharePoint.

Solution
After a lot of digging and trying tried something that wasn't related to any of the errors but was a pure guess.I tried to disable the ASP.Net Compression.



This immediately solved the problem.

I still don't know what is the root cause, but I guess it is an error in one of the files being updated on the client PC's.

Comments

Popular posts from this blog

Install DLL in GAC - Windows 2008/2012 (Using Powershell, No GacUtil.exe)

If you want to install a DLL in the GAC and do not have the GACUtil.exe available. Powershell is properly the easiest way to procede.

Before Powershell you would properly just drag the DLL file into the C:\Windows\Assembly but this option is usually not available anymore.

Powershell - Add DLL to GAC So to install a DLL file in the GAC simply execute the below Powershell script. Remember you migth want to run the Powershell prompt as an administrator.
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")$publish=New-ObjectSystem.EnterpriseServices.Internal.Publish$publish.GacInstall("c:\temp\MyDllFile.dll")iisreset
The first line adds a reference to the assembly we need to be able to mange the GAC.
The second and third lines retrives the GAC object and publish a new DLL file to it.
The last line resets the Internet Information Services. This is only needed if your DLL file is used in a websi…

Sharepoint 2013 - Fullscreen mode/hide quick launch

If you want to hide the quick launch on a SharePoint page or web part page in 2013 you could of cause use CSS scripts as in 2010.
But as a new thing in 2013 the user have the possibility to click on full screen mode. so why not load your page in this mode and then the user can choose to exit the mode if he prefers.

Add a content editor webpart to your page and click on Edit HTML from the ribbon.
Add the following code:

<script type="text/javascript">
window.onload = function()
{
  SetFullScreenMode(true);
}
</script>

SharePoint/Project Server - Firewall port open list

Firewall port open list Every time I have to install a new instance of Project Server I forget which ports have to be open.
The ports are divided into 3 lists, one list for the web front end servers, one list for the application server and one list for the SQL server.
These ports are based on a 2013 installation of SharePoint/Project Server. the 2010 installation defer a little bit.


Web Frontend ServerWhen a range is specified all ports between the range must be opened.
     Port(s)ProtocolBoundDescription
-80 TCPInhttp
-443 TCPInhttps/ssl
-25 TCPInSMTP for e-mail integration
-16500-16519TCPInPorts used by the search index component
-22233-22236TCPIn/OutPorts required for the AppFabric Caching Service
-32843-32845TCPInCommunication between Web servers and service applications
-32846TCPIn/OutSharePoint User Code Service
-808-809TCPInOffice Web Apps
-5725TCP