Web.config is the main settings and configuration file for an ASP.NET web application (which SharePoint is dependent on). The file is an XML document that defines configuration information regarding the web application.This file stores the information about how the web application will act. The ...

learn more… | top users | synonyms (1)

0
votes
2answers
331 views

Add ContentEditorWebPart to the list of Safe Controls

I need to add the ContentEditorWebPart in the list of SafeControls because of this. Unless there's a better way... The problem is, I don't want to add it manually, i want to do this automatically ...
2
votes
2answers
1k views

Access Denied Error while updating the web.config

I am using a third party control for my application in SharePoint 2010 and I need to add entries in the web.config of the web application. Programmatically I have added the entries in the code and ...
2
votes
1answer
122 views

Adding and removing Web.config settings on a per Web app basis in SP2010

I am currently in the process of documenting some development best practises in advance of beginning dev on SP2010. One issue we have at present is that we make changes to web.config files manually. ...
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 ...
1
vote
2answers
166 views

With FBA, why do providers need to be registered in Central Admin web.config?

I have a web application that uses forms-based authentication. As part of the process of setting this up (e.g. these instructions), I need to register the FBA membership and role providers in Central ...
0
votes
3answers
1k views

SharePoint (ASP.NET) Application works fine until morning, only an IISRESET fixes problem

A colleague has developed a SharePoint web-part application (which was developed in VS2005), and deployed on MOSS 2007. We use an .ASCX file for deployment. This application works fine all day, but ...
0
votes
6answers
1k views

SPWebConfigModification is throwing an error

I am trying to update the web.config file through Powershell using the SharePoint class "SPWebConfigModification" however facing the issue mentioned below, please help me to fix this. ...
1
vote
1answer
501 views

Log4net deployment

We're developing web parts using log4net as the logging framework. Right now we're leaving the configuration details in the web.config and will be moving the log4net.dll to the GAC manually. For a ...
2
votes
1answer
431 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 ...
1
vote
2answers
149 views

Updating web.config revert previous updates

I've a SPJob Scheduled with a package (wsp) installation which update web.config and a Application Page which also build to update web.config. The problem is when I install the package it ...
3
votes
1answer
344 views

Web.config backups

Can we prevent the automated backup of moss web.config files or limit the number of them?
1
vote
3answers
2k views

Failed to apply web.config mods through central admin

Something serious has happened. I’m trying to set the authentication provider for a newly created web site (Application Management -> Authentication Providers). I try to set it to either Forms or ...
2
votes
1answer
207 views

ViewState across servers in a SharePoint Farm

When a new server is added to a farm will SharePoint automatically synchronise the machine key such that view state will work across the farm, or is a manual operation required?
2
votes
2answers
672 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? ...