sharepoint 2010 An unexpected error has occurred Navigation

When I click on sharepoint 2010 navigation it gives Site Actions-->site settings--> Navigation

It gives me this error as

sharepoint 2010 An unexpected error has occurred.   Troubleshoot issues with Microsoft SharePoint Foundation.   Correlation ID: 3e75d05b-2bd8-492b-b24d-668f7afdd277   

on home page I can see error tab (an error occured while rendering navigation for requested URL type=forms&name=openprojects&page=8&path=main.NavigationSubform is not a valid virtual path

stack trace: system.web.virtualpath.create(String Virtual Path,Virtualpathoptions at microsoft.sharepoint.publishing.navigation.spnavigationsitemapnode)

I Tried IIS reset and activiate and deactivate publishing feature,no luck... Appreciate for any suggestions

Thanks!

May 11th, 2012 5:20pm

Do you have any custom feature deployed? or using a custom master page?

James

Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 8:40pm

Hi James,

we have custom master page, do you think is that causing issue? please let me know

Apprciate your help.

Thanks!

May 11th, 2012 8:58pm

Yes, most of the time that is the one that is causing this kind of error.

you can open your site in SharePoint Designer and set the out-of-the-box v4.master as default master page. If that works, you need to start checking what is missing or causing this error in your custom .master page.

Does it help?

James

Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 9:09pm

Thanks james,

but we dont have issues on subsites which was using same inherited masterpage ? So any ideas ?

is there any thing releated to publishing feature.

Thanks!

May 11th, 2012 9:34pm

Hi,

1. Can you confirm that replce custom master page with default v4.master fixes the issue?

2. If so, can you compare your custom master page side-by-side with default v4.master and see if there is any missing SharePoint controls in your .master? You can do this in a free text editor tool like Notepad++.

Does this help?

James

Free Windows Admin Tool Kit Click here and download it now
May 15th, 2012 12:23pm

nope it didn't fix the issue... I tried with V4 also it gives me the same error.

Any ideas ?

May 15th, 2012 8:32pm

Please check whether you have any UNAPPROVED master page ( Site Settings > Galleries >Master Pages and Page Layouts ). If yes, then APPROVE it.

Free Windows Admin Tool Kit Click here and download it now
May 16th, 2012 8:07am

Talib,

This is not the only case where this happens.  That may be one answer, however, its not the only way this problem occurs.  I am at a client site and they have added manually in the Quick Launch navigation a link.  The link.  They did not clean the link up which apparently must have had some session information or other unrelevant junk.  Thus the same scenario occurs, but what is worse, because i cant get to the Site Settings --> Navigation page to delete it due to the correlation error as spoken at the inital post of this thread.  How can we remove the rogue link that is causing the navigation to crash?

Thanks in advance

March 7th, 2013 5:10pm

I'm getting the same issue with my subsite which has Publishing enabled and a custom master-page. Changed it V4 and same error. Any subsite that inherits the settings receives same error.

I don't believe I was even playing with the Navigation Settings before the error occurred. One day working, the next, no working.

Since I don't have access to the server I'm at the mercy of the SP2010 Admins.

Is there a fix using SP Designer 2010?


Free Windows Admin Tool Kit Click here and download it now
March 13th, 2013 11:38am

Hi have a simlar issue, started on main site now all subsites.

I cannot customise the Top Navigation Bar, spends 10 mins tring to update then this error.

Error

An unexpected error has occurred.

Correlation ID: 75f08e3c-6741-4f57-91aa-8cd58950c837

Date and Time: 04/09/2013 10:57:46

September 4th, 2013 10:06am

Ok, my dev and I had the same issue and think we figured out the issue and how to fix it.

The breakdown of the issue is here:

- You go to your SharePoint site that has publishing turned on and when you normally see your top navigation (with drop downs, if you have them setup) - it is all missing or you see "Error" in the top navigation bar.
- When you go to Site Actions -> Site Settings and click on Navigation, you get the generic "An unexpected error has occured" with a correlation ID.
- When you look up the Correlation ID in the ULS logs, you get an error similiar to:

System.Web.HttpException: '/#Type=Form&Name=AssetsCurrent&Page=*&Path=Main.NavigationSubform' is not a valid virtual path. 

To resolve the issue:

- Go to your site and put this on the end of your SharePoint site url right after your site name:   /_layouts/topnav.aspx
- This will get you to the now "hidden" area of the old top nav that was removed when you turned on publishing.
- So there is a bad link in your top nav, but the clue is in the ULS error.   Look after /#Type=Form&Name= and you will see "Assets" for my error and for the original posters error, it was "openprojects"
- When your in the hidden area of the top nav, you will have a top nav link that cooresponds to the word you see in the ULS error.   In my case, we had a bad link to an "Assets" DB and I deleted it.
- Once I deleted this bad link labeled Assets, the top bar came back and it started working again.   I assume if the original poster goes to topnav.aspx and deletes his link with "openprojects" in it - his would work too.
- We found out that the user had published an Access DB to SharePoint as a sub-site and when SharePoint loads the access web DB sub-site, it renders an ugly url (which the user tried to put in the top nav as a link)
 The bad rendered link looks like this: <<SharePoint site name>>/default.aspx#Type=Form&Name=AssetsCurrent&Page=*&Path=Main.NavigationSubform
- So to fix it after deleting the link, we just put the url to the Access web DB (ie the first half of the ugly url) and not with the fully rendered url with this on the end: default.aspx#Type=Form&Name=AssetsCurrent&Page=*&Path=Main.NavigationSubform

Hope this helps!

Free Windows Admin Tool Kit Click here and download it now
May 6th, 2014 2:40pm

I Had a similar error but in a different situation, this is actually just a mask to an actual error. Following link explains how to switch the customerror to off, so that the actual error is revealed by the system and can be troubleshooted

http://www.grishbi.com/2015/04/sharepoint-2010-an-unexpected-error-has-occurred/

  • Proposed as answer by Maveric23 6 hours 12 minutes ago
April 2nd, 2015 8:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics