Topic...

Search Centre Site Navigation
Exception From HRESULT: 0x80131904
Which SharePoint Template???
Microsoft.SharePoint.WebControls.EncodedLiteral...
 
 

Search Centre Results Page - Get the site navigation back with CSS

I've often been asked by customers to get the site navigation back onto the search results page, which is fairly easy by:

  1. Put the Results page into edit
  2. Add a script editor web part anywhere onto the page
  3. Click the edit source for the script editor web part
  4. Paste the style block below
  5. Save the page, check it in and publish

<style>

#s4-titlerow {   display: table !important;}

#searchIcon {display: none;}

#contentRow {    padding-top: 5px;}

.ms-srchnav {margin-top: 5px;}

</style>

Note: this has been tested on SharePoint 2013 but many of the ID's and classes look the same as 2010 so there's a good chance it will work on 2010 too.

 
 

Error in the ULS logs - Exception from HRESULT: 0x80131904 at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)

It turned out that the SQL drive had run out of disk space. Further investigation showed the SharePoint Config DB log file was huge. I switched the db to simple recovery, backed it up, struck the log to a sensible size and put it back to full recovery. 

 
 

Which SharePoint template was used to create a site?

If you need a quick way of finding out:

  1. Right click on the page and click view source ( i use the default home page)
  2. press CTRL + F to bring up Find and search wsaSiteTemplateId. 

You should see something like CMSPUBLISHING#0 if it's a publishing site for example. 

 
 

An error occurred during the compilation of the requested file, or one of its dependancies. Cannot convert type 'Microsoft.SharePoint.WebControls.EncodedLiteral' to System.Web.UI.IAttributeAccessor'

I got this taking a default master page out of SHarePoint using SP designer and adding the file to my VS project. Somewhere alone the process the master page file was broken. Open the master page in SPD, select all the text. In VS, create a master page and paste the copied text in. The above error won't occur. 

Comment

Google+