Programming, VB.NET, Software, Visual Studio 2010, .Net, Visual Studio 2013, SharePoint, Tool

Get the Total Number of Documents in a SharePoint Site Collection Library and its Sub Folders using .NET

List the Total Number of Documents in a Library and its Sub Folders
List the Total Number of Documents in a Library and its Sub Folders

One thing that you often need and that is quite annoying to get in a default SharePoint installation is the total number of files in a document library and all of its sub-folders. The most common advice is to open the explorer view and then navigate through the folders and add up the file totals, but this becomes tedious really quickly if you have a library with numerous files and folders. Another option is to write a PowerShell script, but then you need to be on the SharePoint server itself and with an account that doesn’t have access to the document libraries. Also, in the case of PowerShell, you’ll quickly become annoyed with the many bad script examples out there that don’t work and end up taking your time. Continue reading “Get the Total Number of Documents in a SharePoint Site Collection Library and its Sub Folders using .NET”

Advertisements
Programming, SharePoint, Software, Technology, Tool, Web Development

SharePoint: Addressing Seemingly Random Critical Error Event 6398

Event 6398
Event 6398

I was running both a SharePoint 2013 and a SharePoint 2016 standard edition installation with stock, out of the box setups. Seemingly randomly, and on the same day, both started generating Critical Event 6398 Errors once every hour that looked like the error below:

By the way, also check out part #2 of this solution to check out what to do next after this. Continue reading “SharePoint: Addressing Seemingly Random Critical Error Event 6398”

Programming, SharePoint, Software, Technology, Tool

Customizing the Top Bar in SharePoint 2016 (On-Premesis)

There are plenty of reasons why you might want to customize the top SharePoint branding bar that decorates your SharePoint 2016 sites. Rather than going into why this exists and why it is not always/ever desirable, I will go into how to get rid of the least useful features. The key point here is getting rid of something which may add no value to your site and may in fact be annoying your users. Continue reading “Customizing the Top Bar in SharePoint 2016 (On-Premesis)”