SharePoint 2016 – Exception: System.InvalidOperationException: An error occurred while getting information about the user xxxxxxxxxx at server Access is denied

March 30, 2017

Environment: SharePoint 2016 + Windows server 2016 + SQL Server 2016
Problem:
SP 16 pre-requisite installed.
SP 16 configuration wizard, fails at 3th step, with following error.

Task configdb has failed with an unknown exception Exception: System.InvalidOperationException: An error occurred while getting information about the user xxxxxxxxxx at server Access is denied at Microsoft.SharePoint.Win32.SPNetApi32.NetUserGetInfo1(String server, String name) at Microsoft.SharePoint.Administration.SPManagedAccount.GetUserAccountControl(String username)

With full call stack as below.

03/29/2017 07:21:03 9 INF Creating connection string for config db ReadersSP2016V2_SharePoint_Config server ReadersWisa
03/29/2017 07:21:03 9 INF Creating connection string for admin content db SharePoint_AdminContent_f7125642-706d-452e-a877-67a4ec7f1fe4 server ReadersWisa
03/29/2017 07:21:03 9 INF Using NTLM for sql connection string
03/29/2017 07:21:03 9 INF Creating a new farm with config db ReadersSP2016V2_SharePoint_Config content db SharePoint_AdminContent_f7125642-706d-452e-a877-67a4ec7f1fe4 server ReadersWisa for farm mode
03/29/2017 07:21:32 9 ERR Task configdb has failed with an unknown exception
03/29/2017 07:21:32 9 ERR Exception: System.InvalidOperationException: An error occurred while getting information about the user readadmin at server xxxxxxxxx.com: Access is denied
at Microsoft.SharePoint.Win32.SPNetApi32.NetUserGetInfo1(String server, String name)
at Microsoft.SharePoint.Administration.SPManagedAccount.GetUserAccountControl(String username)
at Microsoft.SharePoint.Administration.SPManagedAccount.Update()
at Microsoft.SharePoint.Administration.SPProcessIdentity.Update()
at Microsoft.SharePoint.Administration.SPWindowsService.Update()
at Microsoft.SharePoint.Administration.SPFarmFactory.CreateTimerService(SPFarm farm)
at Microsoft.SharePoint.Administration.SPFarmFactory.CreateBasicServices(SPFarm farm)
at Microsoft.SharePoint.Administration.SPFarmFactory.Create()
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, SqlConnectionStringBuilder siteMapDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
03/29/2017 07:21:32 9 INF Entering function Common.BuildExceptionMessage


Solution:
It is known issue with SharePoint 2016 Server. Solution is to install following patch.
https://www.microsoft.com/en-us/download/details.aspx?id=53287
Problem solved.

Advertisements

SharePoint 2010 to SharePoint 2013 Migration – Strange issue – Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(

March 26, 2017

Problem Case
SharePoint web application migrated 2010 to 2013, master page was mis-aligned css wise and web parts were not editable. So Microsoft recommends to create a new master page for SharePoint 2013. So created a new master page and pageLayout. While new master page was under revsions based on old master page html content, whole site start giving crash on following pages:
• Site collection site features
• Site features
• Web parts (Web Designer Galleries)
• List templates (Web Designer Galleries)
• Master pages and page layouts (Web Designer Galleries)
• Themes (Web Designer Galleries)
• Solutions (Web Designer Galleries)
Different error stacks in above pages:
Stack Trace:: 1

The file / does not exist.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The file / does not exist.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[FileNotFoundException: The file / does not exist.]
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) +1653
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath) +112
System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) +47
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +91
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +192
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) +71
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +223
System.Web.UI.Page.ApplyMasterPage() +74
System.Web.UI.Page.PerformPreInit() +208
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1571

Stack Trace:: 2
[FileNotFoundException]: The file / does not exist.
at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)
at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)
at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData)
at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData)
at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.GetVirtualPathProviderCacheKey(HttpContext context, SPRequestModuleData requestData)
at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
[HttpException]: Exception of type 'System.Web.HttpException' was thrown.
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Server Error in '/' Application.
--------------------------------------------------------------------------------

The file / does not exist.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The file / does not exist.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:: 3

[FileNotFoundException: The file / does not exist.]
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) +1653
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath) +112
System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) +47
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +91
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +192
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) +71
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +223
System.Web.UI.Page.ApplyMasterPage() +74
System.Web.UI.Page.PerformPreInit() +208
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1571

Solution:
Different solutions , that I tried as:
1. De-activate, active publishing features.
2. Run SharePoint Configuration wizard
3. Re-deployed custom features
Solution that clicked as:
Go back to old version of master page (2010 migrated one), everything start working.
So reason is method, Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(
When a master file is changed, it is saved in content database internal tables with all elements like web parts. Slowly check which tag of master file in newly created master file is crashing, remove that element of master file…..so problem is master page content, un-expectedly, a lot of site settings stop working.