Articles about European Sharepoint Hosting Service
Matthew Gilbert
This user hasn't shared any biographical information
Posts by Matthew Gilbert

SharePoint 2013 Hosting – HostForLIFE.eu :: How To Use Visual Studio To Create Costum Master Page
Mar 30th
In this post we will tell you how to use Visual Studio 2013 to create custom master page in SharePoint 2013. Here, I’m using Visual Studio 2013 and SharePoint 2013 on premise for this demo. Before doing anything, go to your site settings page and then click on “Master pages and page layouts” which is under “Web Designer Galleries”. From the master page gallery, download seattle.master page as save it in your local drive. In this example, I’m using seattle.master as the base.
Step 1
Now, Open Visual Studio 2013, then File -> New -> Project. Then in the New Project dialog box, From the templates select Visual C# -> Office/SharePoint -> SharePoint Solutions. Then from the right side select SharePoint 2013 – Empty Project. Give a name and click on OK as shown in below:
Step 2
Then give your local site for deployment and then choose “Deploy as a farm solution” as shown in the fig below:
Step 3
Then right click on the project, then add new item. Then in the Add New Item dialog box, select Module as shown in the fig. Give a name and click on OK as shown in below:
Step 4
Then delete the sample.txt from the Module folder and then past the master page which we have downloaded from the site and saved in the local drive. In my case I have given the name as “MyCustomMaster.master”. Now change the Elements.xml like below:
1 2 3 4 5 6 7 8 9 10 |
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="CustomMasterPages" Path="CustomMasterPages" RootWebOnly="TRUE" Url="_catalogs/masterpage"> <File Path="MyCustomMaster.master" Url="MyCustomMaster.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" /> </Module> </Elements> |
Step 5
Then give a meaningful name to the feature, in my case I have given the name as “ActivateCustomMasterPage”. Then open the feature and give a title and select the scope as Site as shown in below:
Step 6
We will add an event receiver which will set our master page when feature got activated and will set to seattle master page when feature get deactivated. Right click on Feature then click on “Add Event Receiver” as shown in below:
Step 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = properties.Feature.Parent as SPSite; if (site != null) { SPWeb topLevelSite = site.RootWeb; string webAppRelativePath = topLevelSite.ServerRelativeUrl; if (!webAppRelativePath.EndsWith("/")) { webAppRelativePath += "/"; } foreach (SPWeb web in site.AllWebs) { // Activate the publishing feature for all webs. web.MasterUrl = webAppRelativePath + "_catalogs/masterpage/MyCustomMaster.master"; web.CustomMasterUrl = webAppRelativePath + "_catalogs/masterpage/MyCustomMaster.master"; web.Update(); } } } |
Step 8
Write the below code in the FeatureDeactivating event:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
public override void FeatureDeactivating(SPFeatureReceiverProperties properties) { SPSite siteCollection = properties.Feature.Parent as SPSite; if (siteCollection != null) { SPWeb topLevelSite = siteCollection.RootWeb; // Calculate relative path to site from Web Application root. string webAppRelativePath = topLevelSite.ServerRelativeUrl; if (!webAppRelativePath.EndsWith("/")) { webAppRelativePath += "/"; } // Enumerate through each site and apply branding. foreach (SPWeb site in siteCollection.AllWebs) { site.MasterUrl = webAppRelativePath + "_catalogs/masterpage/seattle.master"; site.CustomMasterUrl = webAppRelativePath + "_catalogs/masterpage/seattle.master"; site.SiteLogoUrl = string.Empty; site.Update(); } } } |
Step 9
Right click on the solution explorer and then Build solution. If build succeeded then Right click and then Deploy solution. Once the solution got deployed successfully in the site collection, you can go the site collection features to see our feature must be activated. Go to site settings page, then click on “Site collection features” which is under “Site Collection Administration”. In the Site Collection Features page, you will be able to see “Activate Custom Master Page” feature status is Active like below:
Step 10
Now to verify if the custom master page is deployed to the site, go to the site settings page then click on “Master pages and page layouts” which is under “Web Designer Galleries”. Here you will be able to see master page under “Master Page Gallery” like below:
Now we can go to the settings and see if our custom master page is selected or not. Go to the site settings page, then click on Master page under Look and Feel. To see this link make sure you have publishing feature activated in the site collection. You can also check out: Enable and Disable SharePoint 2013 publishing feature using PowerShell. Here once you click on Master Page, then in the Site Master Page Settings you will be able to see our custom master page is set in the “Site Master Page” as well as “System Master Page” as shown in below:
Step 11
Now to check whether our feature deactivating is working fine or now. Go to the site collection feature page and deactivate the “Activate Custom Master Page” feature. Once it is successfully deactivated, go to the Master Page link under Look and Feel and you will be able to see the Seattle master page is set in the Site master page as well as settings master page.
Over all if you will see your solution explorer, it will look like below:
Hope this will be helpful.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint plans as well as dedicated SharePoint options
SharePoint 2013 Hosting Portugal – HostForLIFE.eu :: How To Resolve E-mail Notification Issue
Feb 17th
In this post we will discuss how to resolve automated Email Notification issue. Usually this issue will comes out with 2 symptoms: Unable to receive automated Email Notification + (Send e-mail when ownership is assigned) not working and Unable to receive E-mail Notification from SharePoint. This issue is because of “Immediate Alert” timer job which was not working probably.
Solution: Clear The Configuration Cache
To clear the config cache on the farm, follow these steps:
1. Stop the OWSTIMER service on ALL of the MOSS servers in the farm.
2. On the Index server, navigate to:
- Server 2003 location:
Drive:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\GUID and delete all the XML files from the directory. - Server 2008 location:
Drive:\ProgramData\Microsoft\SharePoint\Config\GUID and delete all the XML files from the directory.
3. Delete all the XML file in the directory. NOTE: ONLY THE XML FILES, NOT THE .INI FILE.
4. Open the cache.ini with Notepad and reset the number to 1. Then, save and close the file.
5. Start the OWSTIMER service on the Index server and wait for XML files to begin to reappear in the directory.
6. After you see XML files appearing on the Index server, repeat steps 2, 3 & 4 on each query server, waiting for XML files to appear before moving to subsequent servers.
7. After all of the query servers have all been cleared and new .xml files have been generated, proceed to the WFE and Application servers in the farm, following steps 2, 3, 4 and 5 for each remaining server.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint plans as well as dedicated SharePoint options.

SharePoint 2016 Hosting Spain – HostForLIFE.eu :: How To Solve SharePoint 2016 Error Installation
Feb 10th
In this post we will discuss how to resolve “Configuration Failed Error” while installing SharePoint 2016. This error usually comes when you run your SharePoint product configuration wizard and after giving your database details. This error also comes if you are trying to run create configuration database by using SharePoint 2015 Management Shell.
The Error
The error comes when we tried to run the New-SPConfigurationDatbase command from the Management Shell. The full command was like this:
New-SPConfigurationDatabase –DatabaseName SharePoint_Config –DatabaseServer WIN-JC2B1V15KM5 –AdministrationContentDatabaseName SharePoint_Content –Passphrase (ConvertTo-SecureString Qwerty@12345 –AsPlaintext –Force) –FarmCredentials (Get-Credential) -localserverrole SingleServerFarm
And the error came as like below:
The Solution
The account which we were using does have proper permission, so it was not able to create the configuration database. The below permission is required to create configuration database:
- Dbcreator
- SecurityAdmin
- SysAdmin
When we gave proper permission and then try to re-run the PowerShell command, it runs successfully and also when we run the product and configuration wizard, we would not get the issue.
SharePoint Hosting Recommendation
HostForLIFE.eu’s SharePoint Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint plans as well as dedicated SharePoint options.

SharePoint 2013 Hosting France – How To Clear Cache on SharePoint 2013
Feb 3rd
Sometimes whatever changes you are doing in your SharePoint 2013 or 2010 designer workflow does not reflect when you check in the browser. One of the main reason is the SharePoint 2013 designer cache. In this tutorial, we will explain to you the easy way to clear cache on SharePoint.
Step 1
First of all close your SharePoint 2013 designer. Then, go to the below location and delete everything presented.
%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
Step 2
Open SharePoint 2013 designer workflow. And, go to File -> Options -> General -> Application Options.
Step 3
Then in the Application Options, uncheck option “Cache site data across SharePoint Designer sessions” under General tab. It looks like below:
After this you can start your SharePoint 2013 designer and publish the workflow. It should work as expected. Good luck!
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

SharePoint 2013 Hosting UK – How To Add Links To The Top On SharePoint 2013 Site
Dec 23rd
Here we will see how you can add links in top link bar in SharePoint 2013. There are two ways to do that, one is to directly we can add links in the home page as well as you can add link to top link bat from the Site Setting page.
#1 Approach
Step 1
Open your SharePoint 2013 site, then in the top link bar click on EDIT LINKS as shown in the fig below:
Step 2
You can drag and drop any link to the top link bar where it has written “Drag and drop link here”. Suppose I want to give a link item ico then I can drag and drop like below:
Then click on Save, it will save the link.
Step 3
Else you can click on +link icon as shown in the fig below:
This will open the Add a link dialog box and there put the details like below:
Once you Save, it will appear like below:
#2nd Approach
Step 1
Open your Site, then from the Settings icon click on Site Settings. Then in the Site Settings page, click on Navigation under Look and Feel section.
Then in the Navigation settings page go to the Structural Navigation: Editing and Sorting section and then select the Global Navigation and then click on Add Link as shown in the fig below:
Step 2
Then in the Navigation Link dialog box, click on Title and URL as shown in the fig below:
Step 3
Then click on OK and then Ok to close the Navigation Settings page. Then the link will appear like below:
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/month, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

SharePoint 2016 Hosting – HostForLIFE.eu :: How to Improve Site Collection’s Performance
Sep 22nd
Fast Site Collection Creation is a mechanism designed to improve provision performance of Site Collections where provisioning is simply a copy operation which happens at the Content Database level.
Step 1
Firstly, to enable the Fast Site Collection Creation for a template, you would need to run the following PowerShell Command:
1 |
Enable-SPWebTemplateForSiteMaster -Template “STS#0″ -CompatibilityLevel 15 |
The above command is Template Specific, so you need to run the similar command to enable fast site creation on all those webtemplates that you need to include in the process of fast site collection creation.
Step 2
Next, create a SiteMaster in one of the Content databases. A SiteMaster is like a empty site collection that preserves the settings (from the template it was created with), that will be needed for the new Site Collection to be created. It preserves the Features to activate on copy of the site collection, template setting etc. To Create a SiteMaster, you need a Content database and a fast site creation enabled template that it will be created using. Let’s get the DB where we have already provisioned a site collection:
1 |
$DB = Get-SPContentDatabase -site http://sp2016vm:4430/sites/team |
Now, create a SiteMaster in it:
1 |
New-SPSiteMaster -ContentDatabase $DB -Template “STS#0″ |
You can also use Get-SPSiteMaster to confirm if the SiteMaster has been created in a particular database.
Similarly, you can use Remove-SPSiteMaster to remove the SiteMaster from your Content database.
Step 3
inally, provision a new site collection using CreateFromSiteMaster parameter:
1 |
New-SPSite http://sp2016vm:4430/sites/FastSite1 -ContentDatabase $DB -CompatibilityLevel 15 -CreateFromSiteMaster -OwnerAlias “sp2016\sp16_farm” |
Site Collections are now created by copying at Content Database level with Fast Site Collection Creation enabled. The Feature Activation that usually happens during regular Site Collection creation does not occur.
SharePoint 2013 Hosting Recommendation
HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.