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)

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 ...
0
votes
1answer
260 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
2answers
740 views

Get web config setting value in javascript

Best way to get from a custom action js command an webconfig appsetting key value, or another similar approach. ideas? thanks. Reference a .js file on a custom action elements.xml on my ...
1
vote
2answers
957 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 ...
0
votes
1answer
1k 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 = ...
0
votes
3answers
1k views

Code blocks on aspx page

I couldn't use javascript on my page, have "Code blocks are not allowed in this file". I added <PageParserPaths> <PageParserPath VirtualPath="/*" CompilationMode="Always" ...
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 ...
1
vote
1answer
392 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
221 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 ...
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
1answer
326 views

Custom settings file

Is is possible to use a custom settings file in SharePoint? Where do I place the .config file, containing the settings - I can only get it to read the default values defined in .settings file. ...
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 ...
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
1answer
760 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
602 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
248 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
1k 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
500 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
776 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
444 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.
0
votes
1answer
597 views

Get connection string inside TimerJob

Is it possible to get connection string from web.config inside TimerJob?
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
1answer
544 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
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"), ...
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 { ...
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 ...
0
votes
1answer
157 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
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 ...
0
votes
1answer
906 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. ...
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 ...
1
vote
1answer
323 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
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 ...
1
vote
2answers
361 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
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 ...
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: ...
1
vote
1answer
718 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
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 ...
5
votes
2answers
730 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
312 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
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. ...
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
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 ...
0
votes
3answers
980 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
500 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
421 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 ...