Skip to main content

Posts

Showing posts from December, 2010

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator

 I was beginig the integration in the production plateform. But i found an error when i had to display a customized infopath form : After googling it seems that the state service is not configured correctly. But when i look into the services in the central administration, the state service is configured and selected for my sharepoint application. So, i created a new one using the Sharepoint PowerShell tool : $serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>"   New-SPStateServiceDatabase -Name "<StateServiceDatabase>"  -ServiceApplication $serviceApp   New-SPStateServiceApplicationProxy -Name "<ApplicationProxyName>"  -ServiceApplication $serviceApp -DefaultProxyGroup Where : <StateServiceName> is the name for the service application. <StateServiceDatabase> is the name of the State Service database to create  and associate with the service application. <ApplicationProxyName> is the name of the ap...

Updating SPListItem without triggering event receivers

I had an event receiver applied on documents wich can start, programatically of course, a workflow. In this workflow, i used to update some metadatas in my document item. However that triggers the event receiver a new time and you can imagine the infinate loop. Well! afeter googling i found that it is possible to diable the event firing just before the item.Update or the item.SystemUpdate. In first time i used this method but i didn't made my code in a try catch bloc. After doing that my workflow runs normally and it didn't fires the events in the event receiver. Here is the code : public static class SPListItemExtensions { /// /// Provides ability to update list item without firing event receiver. /// /// /// Disables firing  /// event receiver while updating item. public static void Update ( this SPListItem item , bool doNotFireEvents ) {     SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling ();     if ( doNotFireEven...