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