Questions tagged [spwebconfigmodification]

A class of the Microsoft.SharePoint.Administration namespace that holds modifications that are made to the web.config.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers

A web configuration modification operation is already running

I have created a SPWebConfigModification with this script $webApplication = Get-SPWebApplication -Identity $url $WebApp = $WebApplication.Read() $configMod = New-Object Microsoft.SharePoint....
Danny's user avatar
  • 453
2 votes
1 answer

Applying Web.config Modifications Without STSAdm

I have a solution where I am including a webconfig.Name.xml modification file in the CONFIG mapped folder. The problem is, it is only applied if I add a post-build step of: stsadm -o ...
Ricardo Peres's user avatar
1 vote
0 answers

SPWebConfigModification error "The '[' character, hexadecimal value 0x5B, cannot be included in a name. Line 2, position 2727."

I am using SPWebConfigModification thorugh webapplication feature everytime it shows error "The '[' character, hexadecimal value 0x5B, cannot be included in a name. Line 2, position 2727." I am very ...
Mou9383's user avatar
  • 11
1 vote
1 answer

Problem to modify web.config in runtime

I'm trying to modify the web.config file when the feature is activated with the code below: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWebApplication webApp ...
user20336's user avatar
1 vote
0 answers

What is SPXmlDocCache & SPXmlDocCacheRefreshSentinel

I am getting UpdatedConcurrencyException: The object SPXmlDocCacheRefreshSentinel was updated by another user. in ULS during a web application scoped feature uninstall (as part of a solution uninstall)...
lgaud's user avatar
  • 1,971
1 vote
0 answers

SPWebConfigModification and the SPContentService collection

I have created a class that parses an xml file and then adds the appropriate modifications to the web.config in my SharePoint 2010 web applications. When a feature is activated the proper mods are ...
Maxmanzero's user avatar
1 vote
0 answers

Error on SPWebApplication.WebService.ApplyWeyConfigModifications

I've been trying to add a line to my web.config through a EventReceiver on my webpart's Feature. I tried to follow some 'tutorials' (this, this and this). It wasn't working, but at least i could ...
C. Hoffmann's user avatar
0 votes
1 answer

Remove bindings using SPWebConfigModification

I am dynamically adding bindings in web.config. But I don't know how to remove it Here is complete code public override void FeatureActivated(SPFeatureReceiverProperties properties) { ...
Happy's user avatar
  • 513
0 votes
0 answers

'Add Solution': Object reference not set to an instance of an object

I have a WebApplication scoped feature and I am getting this error when I deploy. I have searched all over the internet, and the answers I have found are not much help. Here is the code that is ...
lazoDev's user avatar
  • 1,806
0 votes
0 answers

Manage Content and Structure Custom Errors After Upgrade

I upgraded to SharePoint 2010 and now I can not get access to the content and structure section located under "Site Actions". The runtime error appears telling me that an Application error occurred on ...
wayne9999's user avatar