Second Life of a Hungarian SharePoint Geek

June 20, 2011

An error occured while attempting to find services

Filed under: ADO.NET Data Services, SP 2010, Visual Studio — Tags: , , — Peter Holpar @ 22:04

Today I was unable to add a new, SharePoint 2010 based data source to my Silverlight 4.0 project in Visual Studio 2010.

An error (Details) occured while attempting to find services at
http://yourserver/_vti_bin/listdata.svc’.

The details of the error suggested there were issues with the authentication:

The document at the url http://yourserver/_vti_bin/listdata.svc was not recognized as a known document type.
The error message from each known type may help you fix the problem:
– Report from ‘XML Schema’ is ‘Root element is missing.’.
– Report from ‘DISCO Document’ is ‘Root element is missing.’.
– Report from ‘WSDL Document’ is ‘There is an error in XML document (0, 0).’.
  – Root element is missing.
Metadata contains a reference that cannot be resolved: ‘http://yourserver/_vti_bin/listdata.svc’.
The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘NTLM’.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.

Even the Fiddler trace of the request contained 401 HTTP status results, but there was an internal server error (500) as well.

image

When I tried to connect to a subsite in the same site collection it caused no error.

As it turned out after some investigation the real reason was not security related. The site contained “orphaned” lists. These lists were created based on a list template that was activated by a feature that was deactivated in the meantime.

When navigating to the list in the browser the following exception was displayed:

Server Error in ‘/’ Application.
——————————————————————————–

<nativehr>0x8107058a</nativehr><nativestack></nativestack>Feature ‘524f4fa9-7e07-4ba3-ab31-73d5b42aa849’ for list template ‘10000’ is not installed in this farm.  The operation could not be completed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x8107058a</nativehr><nativestack></nativestack>Feature ‘524f4fa9-7e07-4ba3-ab31-73d5b42aa849’ for list template ‘10000’ is not installed in this farm.  The operation could not be completed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[COMException (0x8107058a): <nativehr>0x8107058a</nativehr><nativestack></nativestack>Feature ‘524f4fa9-7e07-4ba3-ab31-73d5b42aa849’ for list template ‘10000’ is not installed in this farm.  The operation could not be completed.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +0
   Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +187

[SPException: Feature ‘524f4fa9-7e07-4ba3-ab31-73d5b42aa849’ for list template ‘10000’ is not installed in this farm.  The operation could not be completed.]
   Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +27445106
   Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +27822691
   Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews) +283
   Microsoft.SharePoint.SPList.get_Views() +58
   Microsoft.SharePoint.SPList.get_DefaultViewUrl() +136
   Microsoft.SharePoint.Publishing.CachedList..ctor(SPList list, CachedObjectFactory factory) +420
   Microsoft.SharePoint.Publishing.CachedArea.GetChildListByGuid(Guid listIdGuid) +498
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetCachedList(SPWeb web, Guid listId) +160
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.GetCurrentListRootFolderUrl() +374
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.CompareFolderUrlToListUrl() +97
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.get_FolderPath() +28
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.InitializeSelectedPathAndTreeValues(NameValueCollection queryString) +488
   Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.Page_InitComplete(Object sender, EventArgs e) +1400
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +11041550
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674

After deleting the lists, I was able to add the new data source to the project.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: