Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Feature deactivation and activation error

$
0
0

Hi Experts,

We have web application scoped feature and performing lots of activities in event receivers (Activating and deactivating).

The core operation is modifying web.config file across the farm to register custom changes. 

Both activation and deactivation are working fine in happy scenarios. 

But if we run activate and deactivate immediately without time duration, system throws error saying there is already another operation in progress. Here is the error.

This is causing both the events trying to access web.config. Please find the ULS error below.

System.InvalidOperationException: A web configuration modification operation is already running. ---> Microsoft.SharePoint.Administration.SPDuplicateObjectException: An object of the type Microsoft.SharePoint.Administration.SPWebConfigJobDefinition named "job-webconfig-modification" already exists under the parent Microsoft.SharePoint.Administration.SPWebService named "". Rename your object or delete the existing object. 
 at Microsoft.SharePoint.Administration.SPConfigurationDatabase.StoreObject(SPPersistedObject obj, Boolean storeClassIfNecessary, Boolean ensure) 

Is there anyway to control visibility to not show activate/deactivate when the other is running?


Bala


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>