Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Adding navigation links through programming

$
0
0

Hi,

We are building navigation links thrpough programming using AddNavigation node.

Can you please let me know how to correct this? By the same code works in development & local environment. But on the production farm we are getting this issue.

- Creating node for http:// abc.xyz.com/_layouts/viewlsts.aspx?BaseType=1

2016-06-21 04:22:25,224 ERROR - Error occured in AddNavigationLink

Microsoft.SharePoint.SPException: Cannot open "_layouts/viewlsts.aspx?BaseType=1": no such file or folder. ---> System.Runtime.InteropServices.COMException: <nativehr>0x81070215</nativehr><nativestack></nativestack>Cannot open "/ops/it/sm/sap/architecture/_layouts/viewlsts.aspx?BaseType=1": no such file or folder.

   at Microsoft.SharePoint.Library.SPRequestInternalClass.AddNavigationNode(String bstrUrl, String bstrName, String bstrNameResource, String bstrNodeUrl, Int32 lType, Int32 lParentId, Int32 lPreviousSiblingId, Boolean bAddToQuickLaunch, Boolean bAddToSearchNav, String& pbstrDateModified)

   at Microsoft.SharePoint.Library.SPRequest.AddNavigationNode(String bstrUrl, String bstrName, String bstrNameResource, String bstrNodeUrl, Int32 lType, Int32 lParentId, Int32 lPreviousSiblingId, Boolean bAddToQuickLaunch, Boolean bAddToSearchNav, String& pbstrDateModified)

   --- End of inner exception stack trace ---

   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)

   at Microsoft.SharePoint.Library.SPRequest.AddNavigationNode(String bstrUrl, String bstrName, String bstrNameResource, String bstrNodeUrl, Int32 lType, Int32 lParentId, Int32 lPreviousSiblingId, Boolean bAddToQuickLaunch, Boolean bAddToSearchNav, String& pbstrDateModified)

   at Microsoft.SharePoint.Navigation.SPNavigationNode.AddInternal(Int32 iPreviousNodeId, Int32 iParentId, Boolean bAddToQuickLaunch, Boolean bAddToSearchNav)

   at Microsoft.SharePoint.Navigation.SPNavigationNodeCollection.AddInternal(SPNavigationNode node, Int32 iPreviousNodeId)

   at Infosys.SharePoint.Tools.SP2013Migration.ExecuteNavigationMapping.AddNavigationLink(SPNavigationNodeCollection currentNavNodes, XmlNode xnAnchor, SPWeb webObj, XmlDocument xdNavigation, Boolean& partialError) in


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>