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)

4
votes
3answers
6k views

How to get a web.config file in a sharepoint 2010 publishing site?

I am working on a sharepoint 2010 project and I noticed in the soultion their is no web.config. I asked one of my fellow co-workers and he mentioned something about we don't have access to to it as ...
1
vote
1answer
362 views

Upload can't complete on medium and large files

I have a problem related to the file upload into SharePoint. When a user tries to upload that is ~ 5MB, everything is OK, the file is getting uploaded and the user can use the file. In the case of ...
2
votes
3answers
256 views

View callstack of unknown error

I've set <system.web> <customErrors mode="Off" /> </system.web> in my web.config file, but i'm still getting 'unknown error' instead of the stacktrace on my pages. How can I ...
1
vote
2answers
475 views

Is it possible to unextend a web application from a specific WFE?

I have a scenario that I can't seem to find a good solution to. I have two servers in my SharePoint farm, one of them is the legitimate web front end that external users connect to, the other is not ...
4
votes
1answer
82 views

SharePoint 2007 Preventing Funky Characters in Web.Config

We're not exactly sure what's causing this issue but our web.config in one of our Shared Services Providers just appeared to randomly have several funky "square like" characters. Does anyone know why ...
8
votes
1answer
4k views

SPWebConfigModification for one web application - not all

I'm struggling with applying a SPWebConfigModification for just one web application. Microsoft says (SPWebConfigModification Class) in How to: Add and Remove Web.config Settings Programmatically: ...
1
vote
1answer
786 views

How do you register web.config changes to SharePoint service applications, they way you can for web applications?

The SPWebConfigModification class can be used for updating content web applications and also central administration. This can be applied to the SPWebApplication and also SPWebService classes. ...
4
votes
4answers
767 views

SharePoint detailed errors are not shown

I have the following settings in my Web.Config <customErrors mode="Off" /> and CallStack="true" But still detailed errors are not shown (the default error message asking us to make the ...
5
votes
2answers
797 views

Web.Config changes to extended sites programatically

How can you add web.config changes to Extended sites programatically? SPWebConfigModification class does this for both the Main web application and extended web application. I want to do it only for ...
0
votes
2answers
366 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
126 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
2k 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
167 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
505 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
438 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
350 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
212 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
675 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? ...