3
Vote

NullReferenceException

description

When running as a user who is NOT a SharePoint Farm Administrator using SP2013 version, we got the following:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at CodePlex.SharePointInstaller.SystemCheckControl.InitializeChecks()
at CodePlex.SharePointInstaller.SystemCheckControl.Open(InstallOptions options)
at CodePlex.SharePointInstaller.InstallerForm.ReplaceContentControl(Int32 index)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18051 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

Setup2013
Assembly Version: 1.2.8.0
Win32 Version: 1.2.8.0

CodeBase: file:///C:/Users/adam/Downloads/ActiveNavigation.Extensions.SharePoint2013.4.3.3.0/SharePointExtensions2013.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18037 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Microsoft.SharePoint
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4551.1508

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.SharePoint/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18058 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.IdentityModel
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18056 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll

Microsoft.SharePoint.Security
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4420.1017

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.SharePoint.Security/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Security.dll

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18056 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

Microsoft.SharePoint.Library
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4547.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.SharePoint.Library/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Library.dll

System.Web.ApplicationServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.ApplicationServices/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll

System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18056 built by: FX45RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll

SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll

Microsoft.IdentityModel
Assembly Version: 3.5.0.0
Win32 Version: 6.2.9200.16384

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.IdentityModel/3.5.0.0__31bf3856ad364e35/Microsoft.IdentityModel.dll

Microsoft.SharePoint.intl
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4512.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.SharePoint.intl/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.intl.dll

Microsoft.SharePoint.Client.ServerRuntime
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4525.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.SharePoint.Client.ServerRuntime/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.SharePoint.Client.ServerRuntime.dll

Microsoft.Office.Access.Services.Moss.Upgrade
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4420.1017

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Access.Services.Moss.Upgrade/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Access.Services.Moss.Upgrade.dll

Microsoft.Office.Policy
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4551.1509

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Policy/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Policy.dll

Microsoft.Office.Excel.WebUI.Mobile
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4460.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Excel.WebUI.Mobile/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Excel.WebUI.Mobile.dll

Microsoft.Office.InfoPath.Server
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4535.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.InfoPath.Server/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.InfoPath.Server.dll

Microsoft.Office.Server
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4525.1000

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Server/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Server.dll

Microsoft.Office.Server.UserProfiles
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4551.1508

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Server.UserProfiles/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Server.UserProfiles.dll

Microsoft.Office.Server.Search
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4551.1507

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Server.Search/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.Server.Search.dll

Microsoft.PerformancePoint.Scorecards.Upgrade
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4420.1017

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PerformancePoint.Scorecards.Upgrade/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.PerformancePoint.Scorecards.Upgrade.dll

Microsoft.Office.SecureStoreService
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4454.1000
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.SecureStoreService/v4.0_15.0.0.0__71e9bce111e9429c/Microsoft.Office.SecureStoreService.dll
When we run the EXE as Farm Administrator then everything works fine. Is this expected behaviour? Is there anyway to elegantly tell the user that he does not have permission?

file attachments

comments

gaset wrote Oct 15, 2014 at 8:21 AM

I have the same issue. The installers for SP 2010 and SP 2013 work well until Windows 2012 R2. On Windows 2012 R2 with SP 2013 the same unhandled exception is thrown.

wrote Oct 15, 2014 at 8:22 AM

wrote Feb 26, 2016 at 10:39 AM

PerrySharePoint wrote Apr 7, 2016 at 12:59 AM

This bug is from years ago, so hopefully it is a bug that has been fixed in newer releases?