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)

2
votes
3answers
6k views

How do you create webpart-specific config files?

How do you create application specific config files for a GAC-deployed webpart in SharePoint 2010? Which one or more of app.config/web.config/supplemental config are appropriate to use for webparts? ...
2
votes
1answer
975 views

Problem with PageParserPaths when web.config on different port

I have ported a SP site from a dev server to a live server, as may be seen in other questions, and have another problem. I have 1 page which uses some server side code to run. On dev it works, on ...
6
votes
3answers
801 views

Use a supplemental .config file just for a web application

I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes: ...
2
votes
2answers
344 views

Setting customErrors attribute

When activating a feature on a site I am getting a Runtime Error page that indicates to set customError mode attribute to Off in order to see the error. I have changed the web.config in my IIS folder ...
1
vote
1answer
2k views

The HTTP request was forbidden with client authentication scheme 'Anonymous'

I am receiving the following error from my SharePoint 2010 service application: The HTTP request was forbidden with client authentication scheme 'Anonymous' This code is being thrown from the my ...
0
votes
1answer
1k views

SharePoint 2010 Service Application fault exeption

I am receiving an error from my SP 2010 Service Application when I try to execute the code from my proxy. An unsecured or incorrectly secured fault was received from the other party. See the inner ...
0
votes
2answers
934 views

Supplemental .config File example for adding a custom provider in siteMap

Microsoft provides the following example for creating some actions in a web.config. <actions> <add path="configuration/SharePoint/SafeControls"> <SafeControl ...
2
votes
1answer
497 views

Supplemental .config File

I wish to make a change to the web.config file. I know you can do this by using a supplemental config file. I know that the file needs to be coppied to %ProgramFiles%\Common Files\Microsoft Shared\web ...
2
votes
2answers
244 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
1answer
708 views

Get connection string inside TimerJob

Is it possible to get connection string from web.config inside TimerJob?
2
votes
2answers
3k views

SharePoint 2010 - Custom Error Pages 404

I want to configure a custom 404 page for my SharePoint 2010 environment. My first task was to create a custom 404 page (htm). and save it under c:\inetpub\custerr\en-US\404Custom.htm After this I ...
2
votes
1answer
695 views

What is neccesary to write to filesystem from a Web Part?

How can I allow a web part to create a file on a unc path? I have a location with ntfs permissions set to everyone\full control and am getting 'access denied' messages. The SP2010 app pool is running ...
1
vote
2answers
2k views

How to create a “select” custom property?

In a Webpart I want to set some customs properties. I have this code [Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("myName"), WebDescription("myDescription"), ...
3
votes
1answer
2k views

How do I set CallStack=“false” but still get the exception in a custom error handler?

I've got a pretty custom SharePoint 2010 Server solution. We have a custom HttpModule setup for error handling (relevant code provided below): public class ErrorHandlerModule : IHttpModule { ...
2
votes
3answers
2k views

How to access web.config entries when deploying from Visual Studio?

I'm working on a project in SP/VS2010 that contains features with event receivers that require access to appsettings keys in the web application's web.config. While I've checked that the features can ...
0
votes
1answer
188 views

SharePoint Claims authentication and web.config role authorizations

I am trying to secure a few application pages with role base authorizations can't seem to get it working , if I set a deny rule for all users the rule works, but anything with a specific group or ...
3
votes
1answer
369 views

Any change to Web.config causes SharePoint to crash/burn

I tried to add a safecontrol to my web.config file and SharePoint crashed (yellow/white asp.net error screen). I undid my changes and saved the file and the error continued. The only way I was able ...
0
votes
1answer
1k views

Using a Custom login page with FBA, why does the manual change work but not the CA UI?

Is there a way to use a Custom Sign In URL with FBA? Currently we let the default URL be used when setting up the web applications and on deployments update the web.config files with our Custom URL. ...
5
votes
3answers
7k 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
406 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
272 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
605 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
830 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
869 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
851 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
416 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
131 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
168 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
2k 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
510 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
460 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
160 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
363 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

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 Windows (the setting doesn’t ...
2
votes
1answer
220 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
684 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? ...