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)

8
votes
1answer
3k 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: ...
6
votes
2answers
3k views

modify web.config programatically to add a workflow authorized type

I need to add a line in the web.config under authorizedtypes, I want to do it with a wsp solution so that sharepoint takes care of syncrhonizing it with other front end servers. I just want to put ...
6
votes
3answers
603 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: ...
5
votes
2answers
731 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 ...
4
votes
4answers
658 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 ...
4
votes
3answers
5k 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 ...
4
votes
1answer
81 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 ...
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: ...
3
votes
1answer
284 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 ...
3
votes
1answer
443 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 ...
3
votes
1answer
67 views

Sharepoint web.config deployment

I have sharepoint project which has own customized web.config file. In package I have customized config, but I need to apply those changes to second sharepoint server where are sources deployed. Have ...
3
votes
1answer
1k 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 { ...
3
votes
1answer
341 views

Web.config backups

Can we prevent the automated backup of moss web.config files or limit the number of them?
2
votes
3answers
4k 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
2answers
2k 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
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? ...
2
votes
1answer
873 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 ...
2
votes
3answers
243 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 ...
2
votes
3answers
1k 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 ...
2
votes
1answer
119 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. ...
2
votes
1answer
763 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 ...
2
votes
1answer
445 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
214 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.
2
votes
1answer
545 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 ...
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
98 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 ...
2
votes
2answers
444 views

Should I increase MaxControls in the SafeMode section of my web.config?

In my SharePoint web.config, the SafeMode section has a MaxControls attribute that's set to 200 by default. I would like to increase this number but am concerned about possible Production performance ...
2
votes
1answer
536 views

Locate Web.config for Host-named site collection in SharePoint 2010

How can I locate the web.config for a host-named site collection ? or Which web.config can I use for making web.config related changes for a host-named site collection ?
2
votes
3answers
1k views

Accessing connection string in custom job

I have configured connection string in my IIS since I'm reusing it through my sharepoint solutions and custom services running next to sharepoint sites. I'm using following snippet throughout my ...
2
votes
2answers
249 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 ...
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
2answers
669 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
1answer
77 views

Deleted Feature Receiver is Still Running

Here is a complicated one I have been banging my head against for months. I have a SharePoint 2010 site feature with a custom navigation provider. I have created a feature receiver that will add the ...
2
votes
3answers
190 views

Disable users from entering to default page

How to redirect users to http://serverName/Page/default.aspx When they enter http://serverName/default.aspx The first url opens root site, which shows all the contents in SharePoint Site. But I ...
2
votes
1answer
1k views

SPSecurityTokenService.Issue() failed: System.ArgumentException: Cannot get Membership Provider with name xxxxx

Really need help with this issue. I've been struggling for about 4 hours today with this issue and no luck.. Tried everything and every article out there but obviously missed something. Here's the ...
2
votes
1answer
422 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
1answer
205 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?
1
vote
3answers
13k views

Server Error in '/' Application. Runtime Error

I am new to SharePoint. I am developing a web part. I that I have created the .aspx page. When I am going to access that page by the URL it throws an error like. Runtime Error Description: An ...
1
vote
2answers
362 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 ...
1
vote
1answer
365 views

The DataSourceID of 'V4QuickLaunchMenu' must be the ID of a control of type IHierarchicalDataSource

I am trying to make a left navigation bar to SharePoint 2010 with this teckniq=http://www.helpmeonsharepoint.com/2012/03/custom-sharepoint-top-menu-and.html I Have got this Error massage: The ...
1
vote
3answers
1k views

Sharepoint web.config deployment

I have SharePoint app which we are deploying to another SharePoint server and I need to update target server web.config with changes made on source server web.config. Can somebody advise me how to ...
1
vote
2answers
164 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 ...
1
vote
1answer
394 views

web.confg httpRuntime changes - wss vs. wse

I'm trying to allow large file uploads from inside a web part, and I'm having some timeout issues. I'm attempting to increase the executionTimeout to deal with this, but I've seen different ...
1
vote
2answers
171 views

Web.Config Entry

HI I am trying to deploy a web site from my friend in SharePoint 2010. How ever I am not sure under which node / child in web . config file I have to insert the below code? Could any one please help ...
1
vote
2answers
1k views

Table of contents web part remove max 50 limit - without editing the web.config file

I know that to remove the max 50 limit on a TOC web part you can edit the web.config file by adding DynamicChildLimit="0", but I unfortunately do not have access to the server itself to be able to do ...
1
vote
3answers
1k views

HttpModule does not register

I recently need to register a custom HttpModule to intercept the mobile redirection feature. I followed this tutorial. At one point, I need to register my HttpModule in the web.config and put my DLL ...
1
vote
2answers
1k 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"), ...
1
vote
2answers
163 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 ...
1
vote
4answers
242 views

Register user controls (ascx) in web.config?

Since ASP.NET 2.0 I usually register reusable user controls in web.config, rather then register it in every page with <%@ Register %> directives. UPDATED See ScottGu's blog for what I mean. Is ...
1
vote
2answers
961 views

Accessing page from LAYOUTS, how to turn off custom errors

I have a custom page that I access through myspaddress/_layouts/folder/default.aspx. Great. Awesome. However, lately it's showing a runtime error. All I can get though is the standard "Server Error ...