2
votes
1answer
41 views

SPWebConfigModification adding child nodes in undesired order

I have some code that uses SPWebConfigModification to add a couple of nodes to the system.webServer/modules section. What I want to do is add a <remove name="MyModule" /> and then an <add ...
0
votes
1answer
152 views

Error while deleting keys from SPWebConfigModification

I got following error when I tried to remove item from the WebConfigModification. Exception calling "Remove" with "1" argument(s): "Object reference not set to a n instance of an object." I ...
1
vote
1answer
144 views

Add an <assembly> to web.config with SPWebConfigModification

I am trying to add an assembly to configuration/system.web/compilation/assemblies - but with the following code it I get Expression must evaluate to a node-set. private SPWebConfigModification ...
3
votes
1answer
345 views

web.config Entries not Being Removed During Feature Deactivation

I'm writing a web application scoped feature receiver to make changes to web.config using SPWebConfigModification. Adding entries is working well. My problem is removing the entries. When stepping ...
4
votes
2answers
1k views

Add custom error handler at beginning of modules section in web.config (not manually)

Is there a way to put an error handler HTTPModule at the beginning of the modules section in web.config without doing this manually? I've tried the supplemental web.config approach like this: ...
0
votes
1answer
565 views

Verify whether some node exists in SP web.config

Is any way how to find you whether some node exists in web config? SPWebConfigModification? or some other class? I belive there must be way how to find it out. Thanks.
0
votes
0answers
216 views

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 ...
0
votes
3answers
2k views

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported

When the upgrade of 2007 to 2010 took place i started to get errors for my webparts on my website as mentioned below: Error[1] Web Part Error: A Web Part or Web Form Control on this Page cannot be ...
2
votes
1answer
726 views

How to register an ashx handler through sharepoint 2010 farm solution

I have a 3rd party control that i want to add to the web part. That 3rd party control uses a generic ASHX handler. I can always add the registration to the actual WFE web.config but it's a bit ...
1
vote
2answers
142 views

Setting individual WFE config setting

As per my understanding SPWebConfigModification class modifies the web.config across the farm, including all WFE. Are there any workaround to set some WFE specific web.config setting, like licence key ...
0
votes
1answer
247 views

Getting “Expression must evaluate to a node-set” exception while adding HttpHandler entries to web.config programmatically?

I'm trying to update web.config in SharePoint when the feature is activated to register an HttpHandler. The code inside receiver is var configModifications = new SPWebConfigModification { Owner ...
0
votes
1answer
1k views

WebConfigModifications Remove functionality is not working in SharePoint 2010

I am using the following code to remove a web.config modification which added to web.config via one feature Collection<SPWebConfigModification> applicationModifications = ...
1
vote
2answers
207 views

What are the typical reasons for modifying SharePoint web.config

In code utilizing SPWebConfigModification what would the typical reasons be for wanting to modify Two examples I know of are: Adding a Safe control to the config, and making general changes to the ...
2
votes
2answers
208 views

SharePoint - 14/Layouts web config changes programatically

I want to add web config changes to my 14/LAYOUTS/web.config file. How can i achieve this.
0
votes
2answers
1k views

Web.Config Modification not removing

I'm using the code below to add and remove a web.config change when my solution is being installed and uninstalled. The addition is working perfectly, however, the removal (although updating the ...
2
votes
3answers
1k views

SPWebConfigModification class will not update Central Admin application's web.config file

Using SharePoint 2010 I am trying to use the SPWebConfigModification class to make some basic changes to web.config files on applications in the farm, including the Central Administration web.config ...
2
votes
1answer
417 views

Features Overwriting Each Other Changes in Web.config

We've two features both are designed to update (and modify) the web.config. One feature doesn't have any interface it is a SPJob which run on feature activation and copy user controls into web ...
2
votes
2answers
663 views

Editing web.config file from a feature using linq

I have custom web.config functionality that uses Linq to merge elements into a web.config based on a template file. I would like to use this in a feature so I can get it to merge all web.configs in a ...
2
votes
3answers
2k views

Can't remove web.config entries with SPWebConfigurationModification

I have a problem with removing web.config entries. To add entries with the SPWebConfigurationModification is no problem, but whether i try to remove this entries again nothing happens. Any idea why? ...