Search code examples
sharepointsharepoint-2010

SharePoint Mapped Folder Error


I added and deploy mapped folder with .js file but all the time I get error.

enter image description here

Using URL:

https://msdn.microsoft.com/en-us/library/ee231544.aspx

http://blog.netgloo.com/2014/06/19/include-javascript-and-css-files-in-your-sharepoint-2010-visual-web-part/

Error:

Cannot make a cache safe URL for "\template\layouts\ankietaspwp\gridrowvisible.js" , file not found. Please verify that the file exists under the layouts directory.

Do you know why I get this error?


Solution

  • In SharePoint 2013 the layouts folder now has a /15/ node.

    Where in SharePoint 2010 your path might have been

    /_layouts/jquery.js

    In SharePoint 2013 it would now be:

    /_layouts/15/jquery.js