locked
Sharepoint 2007 migration 2010 Default.aspx error RRS feed

  • Question

  • Hi, iv'e recently upgraded one of our sites from 2007 to 2010 and now, the default.aspx page will not open due to a "Unexpected error". I've tried activating the custom errors but can't get them to work. I've been struggling with this error for a few weeks now and spent several hours searching for a resolution. I thought i'd post the code for our for the default.aspx page on here to see if anyone can see whats wrong - 

    <%@ Register TagPrefix="WpNs1" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
    <%@ Register TagPrefix="WpNs0" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    	<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,multipages_homelink_text%>" EncodeMethod="HtmlEncode"/> - 
    	<SharePoint:ProjectProperty Property="Title" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    			<label class="ms-hidden">
    			<SharePoint:ProjectProperty Property="Title" runat="server"/></label>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server"/>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <style type="text/css">
    TD.ms-titleareaframe, .ms-pagetitleareaframe {
    	height: 10px;
    }
    Div.ms-titleareaframe {
    	height: 100%;
    }
    .ms-pagetitleareaframe table {
    	background: none;
    	height: 10px;
    }
    </style>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    	<META Name="CollaborationServer" Content="SharePoint Team Web Site">
    	<script type="text/javascript">
    	var navBarHelpOverrideKey = "wssmain";
    	</script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderSearchArea" runat="server">
    	<SharePoint:DelegateControl runat="server"
    		ControlId="SmallSearchInputBox"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server"/>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <style type="text/css">
    .ms-bodyareaframe {
    	padding: 0px;
    }
    </style>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    	<table cellspacing="0" border="0" width="100%">
    	  <tr>
    	   <td class="ms-pagebreadcrumb">
    		<asp:SiteMapPath SiteMapProvider="SPContentMapProvider" id="ContentMap" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/>
    	   </td>
    	  </tr>
    	  <tr>
    	   <td class="ms-webpartpagedescription">
    		</td>
    	  </tr>
    	  <tr>
    		<td>
    		 &nbsp;</td>
    	  </tr>
    	</table>
    </asp:Content>
    

    If you navigate to one of the sub-sites, the site is displayed. But if you navigate to the home page, we get the "An unexpected error has occurred." 

    Any help out there?

    Thank you.

    Tuesday, August 18, 2015 10:35 AM

Answers

  • Hi,

    From the error message, it seems that a list view web part whose template is not installed in SharePoint 2010 farm exists in the home page.

    And it seems that there is nothing wrong in your default.aspx page code.

    Please make sure that if your home page is default.aspx page.

    Generally, the home.aspx page in Site Pages library is set as the home page of a site and the URL is like this: http://server/SitePages/home.aspx.

    I recommend to add “Contents=1” to the URL of the home page and then delete all the list view web parts in that page.

    After that, go to the home page to see if the issue still occurs.

    Best regards,

    Victoria


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, August 20, 2015 8:31 AM

All replies

  • You'll probably find errors in the ULS logs for the same time. They should have a ULS correlation ID to go with them.

    Tuesday, August 18, 2015 10:38 AM
  • Hi, I may have found the issue - 

    System.ArgumentException: Feature '75a0fea7-8d3c-455d-89d3-4ece8739402d' for list template '420' is not installed in this farm.  The operation could not be completed.    at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.<GetFeatureRootAndListSchemaPaths>b__18()     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPFeatureManager.GetFeatureRootAndListSchemaPaths(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, Guid featid, Int32 ltid, String& sPathToFeatureRoot, String& sPathToSchemaXml)     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex)     at Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex)     at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.get_Views()     at Microsoft.SharePoint.Publishing.CachedList.GetMetadataNavSettingsXmlNoCache(SPList sourceList)     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavSettingsXmlNoCache(SPList sourceList)     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavSettingsXml(SPWeb web, Guid sourceListId, Boolean& listExists)     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavigationSettings(SPWeb web, Guid sourceListId, Boolean checkWebPropHint)     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.GetMetadataNavigationHintsForList(SPWeb web, Guid listGuid)     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataHierarchyNodeSiteObject.get_HasChildren()     at System.Web.UI.WebControls.TreeView.DataBindRecursive(TreeNode node, IHierarchicalEnumerable enumerable, Boolean ignorePopulateOnDemand)     at System.Web.UI.WebControls.TreeView.PerformDataBinding()     at Microsoft.SharePoint.WebControls.SPTreeView.PerformDataBinding()     at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()     at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()     at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)     at System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e)     at Microsoft.SharePoint.WebControls.SPTreeView.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Tuesday, August 18, 2015 10:53 AM
  • Hi,

    From the error message, it seems that a list view web part whose template is not installed in SharePoint 2010 farm exists in the home page.

    And it seems that there is nothing wrong in your default.aspx page code.

    Please make sure that if your home page is default.aspx page.

    Generally, the home.aspx page in Site Pages library is set as the home page of a site and the URL is like this: http://server/SitePages/home.aspx.

    I recommend to add “Contents=1” to the URL of the home page and then delete all the list view web parts in that page.

    After that, go to the home page to see if the issue still occurs.

    Best regards,

    Victoria


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Thursday, August 20, 2015 8:31 AM