The spwebconfigmodification tag has no wiki summary.
1
vote
1answer
36 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 ...
1
vote
0answers
21 views
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 ...
1
vote
1answer
96 views
Sharepoint 2010 failed to apply web.config modifications to Web Application
I have a SharePoint solution deployed into a specific web application on the production SharePoint site.
When I try to enable the feature from the site features in Site Settings I get an error saying ...
1
vote
1answer
88 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 ...
0
votes
1answer
58 views
ApplyWebConfigModifications caching issue
Doing some testing of adding multiple configuration settings during a feature activation. One of my trials caused an error with a setting, specifically around preCondition statement for ...
1
vote
0answers
147 views
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 ...
1
vote
2answers
68 views
SPWebConfigModification class not found?
Using Sharepoint 2010, I am trying to use the SPWebConfigModification class to add connection strings the the sharepoint's web.config.
My problem is that the class SPWebConfigModification is not ...
2
votes
1answer
305 views
How does SP resolve web.config modifications?
Specifically, if my code makes a change to the web.config to enable the ScriptResource.axd HttpHandler, and then another third party app comes along and also 'adds' the config entry (it doesn't add a ...
4
votes
2answers
811 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
362 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
179 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
2answers
1k 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
385 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
104 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
2answers
364 views
WebConfigModifications contains modifications applied before
I have SP2010. I know web.config modifications is not always the best way to modify web.config according to some articles from Internet, but we have what we have.
My goal is to make the following ...
0
votes
1answer
200 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
759 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
261 views
SPWebConfig Modification Code Review
I have read about best Practices for development once it comes to SPWebConfigModification and write feature to read xml file and modify web.config files and works fine on my local environment but once ...
1
vote
2answers
163 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
179 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.
1
vote
2answers
478 views
How do I fix the error “Expression must evaluate to a node-set” setting web.config entries?
I'm trying to update web.config in SharePoint when the feature is activated. I have created Event receiver. The code inside receiver is:
public override void ...
0
votes
2answers
879 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 ...
0
votes
1answer
307 views
Problem adding child nodes using SPWebConfigModification
I'm using SPWebConfigModification to update web.config. I've got the following scenario:
<configuration>
<configSection>
<sectionGroup>
<childnodes />
...
2
votes
1answer
403 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
638 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?
...
