Site assets library missing in SharePoint Online/2019/2016/2013

This SharePoint Online tutorial explains, how to solve site assets library missing SharePoint online issue. We will also check how to activate “Wiki Page Home Page” site feature programmatically using PnP SharePoint Online and using the browser.

Recently I have created a SharePoint Online publishing site. After the site was created, I have found that “Site Assets” and “Site Pages” are not available in the Site contents page.

To solve the site assets library missing SharePoint online issue, you need to activate the “Wiki Page Home Page” site feature.

We can activate the “Wiki Page Home Page” site feature using the browser or programmatically using PnP SharePoint Online.

“Wiki Page Home Page” site feature is activated by default in team site.

Activate Wiki Page Home Page Feature using Browser in SharePoint Online/2019/2016/2013

For activating the feature, Open SharePoint Online site, go to Site Settings -> Click on “Manage Site Features” under “Site Actions”. Search for “Wiki Page Home Page” and click on the “Activate” button.

site assets library missing sharepoint online
how to enable site assets in share Point online

Once you activate, you can see it will be activated like below:

site assets library missing sharepoint online
Activate Wiki Page Home Page Feature using Browser

Activate Wiki Page Home Page feature Programmatically using PNP Core CSOM library in SharePoint Online

Now we will see how to activate “Wiki Page Home Page” in SharePoint Online using PNP core CSOM library.

If you are new to Sharepoint PnP, following this article to know about PnP SharePoint Online Development using Patterns and Practices (PnP)

Here I have created an asp.net application and I have added a button and On click on the button, I am activating the feature using PnP core csom library.

Below are the references are used in the code:

  • Microsoft.SharePoint.Client;
  • OfficeDevPnP.Core;

Activating the feature use below code:
clientcontext.web.ActivateFeature(Guid) ;

Given below example shows the activate the feature “Wiki Page Home Page” which you can write on the button.

AuthenticationManager authMgr = new AuthenticationManager();
string siteURL = "https://doaminName.sharepoint.com/sites/TSInfoPNP";
string userName = "*******@doaminName.onmicrosoft.com";
string password = "********";
protected void btnActivateFeature_Click(object sender, EventArgs e)
    {
        activateFeatureWikiPage();
    }
    public void activateFeatureWikiPage()
    {
        Guid wikiPageFeatureID = Guid.Parse("00bfea71-d8fe-4fec-8dad-01c19a6e4053");

        try

        {
            using (var ctx = authMgr.GetSharePointOnlineAuthenticatedContextTenant(siteURL, userName, password))
            {
                ctx.Load(ctx.Web);
                ctx.Web.ActivateFeature(wikiPageFeatureID);
                ctx.ExecuteQueryRetry();
            }
            lblActivateFeature.Text = "Wiki Page Home Page Feature Successfully Activated";
        }
        catch (Exception ex) {

            lblActivateFeature.Text = ex.StackTrace;

        }
    }

Run Your Application. Next click Button “Activate WikiPage” as shown below.

site assets library missing sharepoint online
activate the wiki page home page feature

Now the feature is activated on our SharePoint Online site. Go to Site Settings -> Site Actions -> Manage Site Features.

activate the wiki page home page feature programmatically
activate the wiki page home page feature programmatically

You may like following SharePoint tutorials:

This SharePoint Online tutorial we saw how to solve site assets library missing SharePoint online issue and also we saw how to activate wiki page home page site features programmatically using PnP SharePoint and using browser.

>