The Error
The SharePoint error after you have started the Azure Compute Emulator for the first time: “Object reference not set to an instance of an object”SharePoint trace:
Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties() at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs() at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) at Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalAvailable() at Microsoft.Office.Server.WebControls.MyLinksRibbon.EnsureMySiteUrls() at Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalMySiteUrlAvailable()
Fix it
To fix this you have just to set the IIS anonymous user back to IUSR. But unfortunately you have to do this every time after you have run the emulator.Open IIS Manager (inetmgr) and do the following steps.
Done.
Fix it with PowerShell
If you don’t like clicking like a monkey, you can fix it with PowerShellPS> import-module webadministration
PS> set-webconfigurationproperty /system.webServer/security/authentication/anonymousAuthentication -name userName -value "IUSR"
Hope this will save you time.
0 comments:
Post a Comment