SharePoint 2013 custom solutions: Image referenced from 15 hive shows error

SharePoint 2013 contains both 14 hive and 15 hive folders to support both 2010 and 2013 solutions.

Issue: If you are updating your 2010 solution to 2013. You make all the changes, moved all your images and reference files to 15 and left the references in solution as http://sharepoint/_layouts/CustomSoltuion/Images/one.png – you get an error instead of image there.

Yes, you have moved the image to a folder under 15 hive. But still, it does not show up.

Resolution:By default in 2013 _layouts/ is not going to point to the current version. If you are developing a solution for SharePoint 2013 or updating a solution which is already developed for 2010, you have to be careful about this path.

In 2013, 15/layouts should be referred are _layouts/15. whereas in 2010 14/layouts folder can be referred as _layouts/.

So, in the above example, reference should be updated to http://sharepoint/_layouts/15/CustomSolution/Images/one.png.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SharePoint Designer cannot display the item

You run into ‘SharePoint Designer cannot display the item’ error when you are trying to edit an existing workflow setup in Designer quite often when there is a windows update or update to .NET framework installed in your computer. In some cases it may also not allow you to create new workflows. Resolution: Clearing Designer […]

Read More

Create alerts on views in SharePoint document library

This is one of the most frequently raised question or complaint by end users. Why can’t I create alerts on views in my SharePoint library? When you try to setup alerts on items in a library, sometimes you have the option to set ‘Someone changes an item that appears in the following view: Drop down […]

Read More

Application Server Administration job failed for service instance – SharePoint Search error

Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (GUID) – Event 6482, SharePoint Server is popping up in the server running Search service once every minute. Search is working fine without any issues, Content sources are crawled, indexes are created normally. No issue on user side of things.But the above error is flooding the event […]

Read More