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
3answers
4k views

[UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported

When the upgrade of 2007 to 2010 took place i started to get errors for my webparts on my website as mentioned below: Error[1] Web Part Error: A Web Part or Web Form Control on this Page cannot be ...
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 ...
3
votes
1answer
70 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 ...
0
votes
1answer
395 views

Custom MembershipProvider: applicationName

I'm creating a custom MembershipProvider for FBA authentification. When I access the root url of the web app http://sp:6336/, my provider is initialized. Value of "applicationName" in web.config is ...
0
votes
1answer
184 views

different Virtual directories for same Web application

When I go to IIS and check SharePoint web applications. another virutal directory has been created for the Web application. for example if the web application is mydomain1 80 there is two virtual ...
0
votes
1answer
275 views

Registering of controls in web.config

Is it possible to register controls, aside from: <%@ Register Tagprefix="CustomSearch" Namespace="SomeAssembly.WebControls" Assembly="SomeAssembly.WebControls, Version=11.0.0.0, ...
1
vote
0answers
589 views

MS11-100, MaxHttpCollectionKeys not working

Our application is giving the following error in a large form: System.InvalidOperationException: Operation is not valid due to the current state of the object. at ...
0
votes
1answer
548 views

Problem with Ajax Control Toolscript

Yesterday I tried to add the Ajax Control Toolkit to my solution, i first had some problems because I used the version for .NET 4.0, so i replace it and used the version made for .NET 3.5. I only ...
3
votes
1answer
1k 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 ...
1
vote
2answers
173 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 ...
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
282 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
860 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
1k 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
2k 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
2k 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
464 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
235 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
174 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
337 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
2k 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
838 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
646 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
273 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
596 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
810 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
463 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
224 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
620 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
589 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
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
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
166 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
302 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
952 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
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
339 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
251 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
414 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
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
751 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
732 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
761 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 ...