Pages

Monday, April 2, 2012

SharePoint Development: Miscellaneous Errors and Resolution

This article contains information on various SharePoint development errors that you may encounter. I will keep updating this article with solutions or workaround when possible.

  1. System.InvalidOperationException: Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event
    This error might appear because your application or code is trying to do asynchronous operation such as retrieving data from web service. In order to resolve this error, add Async="true" attribute to your page e.g.,

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyApplicationPage.aspx.cs"
        Inherits="Contoso.Layouts.MyProject.MyApplicationPage" DynamicMasterPageFile="~masterurl/default.master" Async="true" %>

  2. Microsoft.SharePoint.Client.ServerException: One or more field types are not installed properly. Go to the list settings page to delete these fields.
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
       at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
       at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
       at HDSDPConsole.Program.SubmitRecordsTo3DS(String DocumentLibraryGUID, String DocumentLibraryPath)

    This error might appear when you are trying to reference a field name with an incorrect internal field name. To look at the internal field name, select the column name in a Document Library or List “List Settings” page. Copy the URL, and go to http://meyerweb.com/eric/tools/dencoder/. Paste the URL and hit “Decode”.


No comments:

Post a Comment