SharePoint 2016: My Issues and Solutions

Windows Server 2016: Fails to Ping Localhost

Issue: ping localhost fails (ipv6 message were seen).
Solution: Our system administrator ran Microsoft Fix to give preference to IPv4 over IPv6

https://support.microsoft.com/en-ca/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users


SQL Server 2017: Fail to Open Configuration Manager

Issue: Cannot connect to WMI provider

Solution: http://tritoneco.com/2014/05/15/fix-sql-configuration-manager-cannot-connect-to-wmi-provider

The following command must be run as Administrator (140 is for SQL Server 2017):
C:\Program Files (x86)\Microsoft SQL Server\140\Shared>mofcomp sqlmgmproviderxpsp2up.mof

SharePoint 2016: Unable to Upload Multiple Documents

Issue: When directly working on SP 2016 Server, no response when clicking on "Upload files using Windows Explorer instead"

Solution:

1. Try to upload files on a client computer where WebClient service is available

2. If working on the SP Server, please activate the "WebDAV Redirector" feature and start WebClient windows service.

https://www.vioreliftode.com/index.php/windows-server-2016-and-sharepoint-sites-open-with-explorer-mode/
https://theitbros.com/installing-webdav-client-windows-server-2016/

Note:
1. The Windows Server must be restarted after WebDAV Redirector is installed.
2. For me, no need to change the Windows Registry for WebClient.

SharePoint 2016: Central Admin keeps asking me for credential

Solution: Start Menu/Microsoft SharePoint 2016 Products/right click SharePoint Central Admin/Run as administrator

SharePoint 2016: Apps uploaded in App Catalog don't appear in my site content

If you can't see the apps in Site Content/ From your organization, please follow https://github.com/SharePoint/sp-dev-fx-webparts/issues/331 to installed the language dependent fixes 2017 CU(required even you use English only) from https://blogs.technet.microsoft.com/stefan_gossner/2017/11/14/november-2017-cu-for-sharepoint-server-2016-is-available-for-download/.

 



SharePoint 2016: Err when clicking an app to install: The specified application identifier {GUID} is invalid or does not exist.

Solution: Before installation please register the app by running https://ssrpdap03/_layouts/15/appregnew.aspx


SharePoint 2016: Pressing F5 in Visual Studio, Error occurred in deployment step 'Install SharePoint Add-in': The specified application identifier {GUID} is invalid or does not exist.

Solution:
Option 1: Please register the app by running https://ssrpdap03/_layouts/15/appregnew.aspx
Option 2: Remove ClientId and ClientSecret from web.config, let Visual Studio auto-generate them.


SharePoint 2016: A different version of this App is already installed with the same version number.  You need to delete the app from the site and the site recycle bin to install this version

Solution: In AppManifest.xml, increase the version number and then re-package the app and upload to SharePoint site.


SharePoint 2016: Warning – You Are Being Redirected To The Following URL That Was Not Registered As The App Launch Url


Solution: The Redirect URL registered with appregnew.aspx should be the same as the start page set in AppManifest.xml

SharePoint 2016: HTTP Error 401.2 - Unauthorized

Cause: IIS Authentication setting mismatches web.config, e.g. web.config: <authentication mode="Forms" />, but in IIS/your website/Authentication/Forms Authentication is Disabled.
https://support.microsoft.com/en-us/help/942043/error-message-when-you-try-to-visit-a-web-page-that-is-hosted-on-iis-7


SharePoint 2016: The remote app keeps asking me for credential for remote hosting website:


Solution:  Regedit/ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa/Right click/New /DWord (32-bit) Value/Name: "DisableLoopbackCheck"/Valye: "1"

https://sharepoint.stackexchange.com/questions/119774/sharepoint-app-giving-credentials-popup/119806
https://sureshpydi.blogspot.com/2013/04/sharepoint-2013-issue-app-prompting-for.html?showComment=1470215481580#c6116519647350364803


SharePoint 2016: ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource.]

Solution: use GetS2SClientContextWithWindowsIdentity for provider hosted apps instead.

            var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
            //using (var clientContext = spContext.CreateUserClientContextForSPHost())
            using (var clientContext = TokenHelper.GetS2SClientContextWithWindowsIdentity(spContext.SPHostUrl, Request.LogonUserIdentity))
            {
                if (clientContext != null)
                {
                    spUser = clientContext.Web.CurrentUser;

                    clientContext.Load(spUser, user => user.Title);

                    clientContext.ExecuteQuery();

                    ViewBag.UserName = spUser.Title;
                }
            }

http://www.appzinside.com/2015/03/13/configure-an-environment-to-run-your-provider-hosted-high-trust-apps-in-sharepoint-2013/

https://social.msdn.microsoft.com/Forums/en-US/a1a47c61-2bf5-4d5c-a287-a75d51f4b150/access-denied-you-do-not-have-permission-to-perform-this-action-or-access-this-resource?forum=appsforsharepoint

SharePoint 2016: An unexpected error has occurred. Please try again by launching the app installed on your site

Solution: Check web.config.

    <authentication mode="Windows" />
    <authorization>
      <allow users="?" />
    </authorization>

Please change "allow" to "deny".

Comments

Popular posts from this blog

Use GnuPG Tools or C# Code for PGP Encryption and Signature

Errors in Net Core Add-Migration

Confusing Concepts about SFTP: SSH2 vs OpenSSH