Thursday, December 19, 2013

1) Browse
to the page where the Breadcrumb Navigation Links and the SharePoint
Ribbon needs to be hidden. Add a Content Editor webpart on the page. Add
the below style code in a content editor web part.

<style
type=”text/css”>

#ctl00_PlaceHolderTitleBreadcrumb_ContentMap
{display=none;}

</style>

2) Edit the web part,
click in the content zone, then on the ribbon,Editing
Tools ->Format Text area, select theHTML drop
down and clickEdit HTML source.
Paste the code in there, and save.

3) In the webpart properties,
make the Chrome Type asNoneand under Layout, checkLayout as Hidden.

Friday, December 13, 2013

Recently I came across a weird issue, a site collection in
the SharePoint farm was giving HTTP 404 intermittently. My initial thought was
maybe the whole web application had the issue but didn’t see this happening
with any other site collections on the same web application. And I got this
error only 1 out of 10 times. But another user seemed to have got it from the
first try itself. It really baffled me for couple of hours. So I did an IIS
reset and even restarted the SharePoint timer service on the SharePoint web
front ends. That didn’t seem to help either.

Resolution

At some point, I realized that this was a site
collection specific issue. This site collection had its own dedicated database.
I had to detach and attach the content database of this site collection from
the web application using Powershell
(read dismount and mount)to resolve this issue.

Few weeks back I had done a detach/attach
of the same content database from Central Administration. I think performing
dismount and mount from Central Administration console led to this behavior. I
still find this weird though.

P.S.: Please make a note of the Content DB
name before you start this operation