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
1answer
766 views

Access data from web.config in infopath 2013

I want to access the URL from web.config file in sharepoint 2013. I have written the following code : string siteUrl = System.Configuration.ConfigurationManager.AppSettings["strSharepointURL"] + ...
0
votes
0answers
8 views

FBA web.config Modifications using SPWebConfigModification

General question: Will using SPWebConfigModification deploy the modifications for the membership roles and providers to all 3 web.config files for FBA? I am needing to apply these providers ...
1
vote
0answers
38 views

Programmatically created SPWebApplication's WebParts not registered as safe

I am having a frustrating issue with a programmatically created web application in which a programmatically deployed solution's web parts are not registered as safe when adding to a programmatically ...
2
votes
1answer
24 views

Applying Web.config Modifications Without STSAdm

I have a solution where I am including a webconfig.Name.xml modification file in the CONFIG mapped folder. The problem is, it is only applied if I add a post-build step of: stsadm -o ...
0
votes
0answers
18 views

SharePoint 2013 SessionState - SQLServer Vs InProc

We have a legacy application runs off SharePoint 2013 farm which uses SessionState InProc. I know it's not supported in a sever farm enviroment. To make this work developers edited Web.config entries ...
1
vote
1answer
19 views

enabling viewstate in webparts

I am using viewstate in my webparts ViewState["CurrentPageNo"] = 22; But this is not working on my production environment as enableview state is false in web.config. How can we enable it on ...
0
votes
0answers
7 views

consume wcf service by not using config

I am using feature to add bindings in web.config file. It add bindings when i activate feature. Like below public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPFarm ...
0
votes
0answers
15 views

How to make use of system.web authorization with claims and SharePoint?

I'm trying to use system.web/authorization to deny/allow specific groups and users for a couple of _layouts pages. I could use code behind, but I thought the quickest way is to throw a little ...
1
vote
1answer
28 views

Adding a large modification to web.config in a SharePoint Web Part

Through various sources on the web, I've seen simple ways to modify web.config from a SharePoint feature. However they are typically one liners. But if I need to add a WCF Binding such as this: ...
0
votes
0answers
49 views

InfoPath error, “The Soap message cannot be parsed”. Risks editing the execution timeout?

So i just ran into the problem with an InfoPath form for a list with over 60 columns and over 3000+ list items that can't be deployed to the server because "The Soap message cannot be parsed". I've ...
0
votes
0answers
20 views

Sharepoint 3.0 Federation Configuration Wizard Error

I've been able to debug my external STS and I see that passive federated mode is NOT being used with my sp2013 app and an external STS. I've been working on. FYI, I do have the STS working with ...
1
vote
2answers
56 views

Best practice to edit web.config of a web application?

I would like to build something in C# to edit the web.config of the web application. I would like to enable the blob cache for the image renditions. What is the best practice to edit the web.config ...
0
votes
0answers
34 views

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

I have created 4 custom web-part for SharePoint 2010. It was working fine till now. But now due to some reason I have to move my web-application from one port to another. I have done it successfully ...
0
votes
0answers
25 views

Added a connection string in web.config file, but still there is a problem in connecting to it

I have added the connection string in web.config file, still I can't see the data. i.e. there is no connection to DB, is there another web.config file overriding this?
2
votes
2answers
2k 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 ...
0
votes
1answer
33 views

Is it possible to have a configurable parameter in a SharePoint 2013 (on-premises) Farm solution?

I am developing a SharePoint 2013 custom WebPart using Visual Studio 2012 where on Page_Load event, I am calling a method RunProc() which executes a SQL Stored Procedure in some other server. When I ...
0
votes
2answers
2k views

SharePoint 2013 product configuration wizard , Could not find file 'C:\inetpub\wwwroot\wss\VirtualDirectories\…local80\web.config'

I have SharePoint 2013 installed on windows server 2008 R2. My current build version is :- Major Minor Build Revision ----- ----- ----- -------- 15 0 4481 1005 And to upgrade my ...
1
vote
0answers
72 views

WCF endpoints in SharePoint web.config

I have a SharePoint site that makes calls to a public web API (Melissa Data) using a WCF client. I have the endpoints configured in the web.config like so: <system.serviceModel> ...
0
votes
1answer
37 views

After retracting a solution the Sharepoint 2010 farm displays error

"The DataSourceID of 'TopNavigationMenuV4' must be the ID of a control of type IHierarchicalDataSource. A control with ID 'topSiteMap' could not be found."
0
votes
1answer
2k views

WebPart: Could not find default endpoint element that references contract

We have a custom WebPart solution (SharePoint 2013 SP1) that needs to communicate with a Web Service that is not located on our SharePoint farm. I went through the regular motions of adding a Service ...
1
vote
4answers
51 views

Best way to handle shared configuration settings between Web Parts?

Let's say I have several web parts as part of a solution, all of which need to look up certain information in some list. Within the code, they need to know the name of the list to use TryGetList (or ...
4
votes
4answers
28k 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
1answer
60 views

Recreate web.config for Central Administration

I was experimenting with SharePoint 2010 in a VM. After trying my hand with custom app development, I decided I wanted to free up the space used by Visual Studio and so I uninstalled it. After I ...
0
votes
1answer
27 views

Problem in loading assemblies files for a third party tool when accessing the central administration site

I have installed a clipboard manager third party tool named "KWizCom". then i removed the web application which have this tool. but now the Central administration site become inaccessible. so to know ...
0
votes
0answers
43 views

Programmatically view web.config

I used the SPWebConfigModification class to modify the web config (so I thought)*. I went through and looked at all the web configs that I knew of (layouts hive, config hive, iis virtual directories) ...
1
vote
2answers
173 views

“Page cannot be displayed” when uploading a file greater than 180MB

On our SharePoint 2013 Enterprise install (SP1), we are experiencing issues when uploading files greater than 180MB. When the dialog box states that the file is being uploaded, after approx 60 ...
3
votes
1answer
846 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 ...
0
votes
1answer
968 views

Unable to create new Web Application - Corrupted Site in IIS and SecureToken Service errors

I'm not able to create new Web Application, after do that the page in CA when I was creating Web App shows error that "Internet Explorer cannot displayed the websitebe" In IIS Site has a few less ...
0
votes
0answers
539 views

Syntax for including maxJsonLength in a standalone web.config for a Sharepoint Farm solution?

We encountered the following error in Javascript in a Sharepoint project: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the ...
0
votes
0answers
29 views

Webconfig entries are added on each deployment

I have an issue, basically everytime I deploy a solution it adds 3 entries of safecontrols which basically do not exist in my project anymore. Before they were there, but not anymore. Each time after ...
0
votes
1answer
21 views

Entries in the web config are constantly added

I have an issues with the web config entries for safe controls, for some controls i have added a safe control to the file. I've done this in visual studio 'Safe control entries'. But any time i deploy ...
0
votes
1answer
108 views

Accessing web.config file of central administration

Pretty simple problem, but can't find a solution. Mostly because most of examples of reading web.config asks to use web application name, which is empty string for central administration. So is there ...
1
vote
2answers
278 views

Seperate Web.Config file at Site Collection levels

In SharePoint, Web.Config file is only one as per One Web Application. Now, I have a One Web Application, Inside it different site collections, Now if i change something in web.config file it will ...
0
votes
1answer
564 views

Problem inserting web part - is not registered as safe

A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. I've looked at my web.config and I can see the entry ...
1
vote
1answer
152 views

Problem to modify web.config in runtime

I'm trying to modify the web.config file when the feature is activated with the code below: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWebApplication webApp ...
0
votes
1answer
747 views

Verify whether some node exists in SP web.config

Is any way how to find you whether some node exists in web config? SPWebConfigModification? or some other class? I belive there must be way how to find it out. Thanks.
0
votes
2answers
465 views

Error while deleting keys from SPWebConfigModification

I got following error when I tried to remove item from the WebConfigModification. Exception calling "Remove" with "1" argument(s): "Object reference not set to a n instance of an object." I ...
0
votes
1answer
54 views

SharePoint and WebService integration after migration

My scenario is: A 2010 environment that function as it should, with custom webparts. A 2013 environment where I did the migration from 2010. I extracted the farm-solutons from the 2010 environment ...
1
vote
4answers
909 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 ...
0
votes
1answer
175 views

SharePoint Application Page Cannot Find web.config

I am developing a custom SharePoint Application page. This page has a button which calls a web service. I managed to get it to run just fine, and was also able to deploy it successfully. However, in ...
0
votes
0answers
203 views

NuGet package for Sharepoint 2013 app

I work on an app for SharePoint 2013 Foundation. I created it via New Project > Templates > Visual C# > Office/SharePoint > Apps menu. Template is called App for SharePoint. Now I want to connect to ...
4
votes
1answer
506 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 ...
0
votes
3answers
5k 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
2answers
140 views

Automated deployment and environment-specific configuration

We are using TeamCity and Octopus Deploy to perform CI/CD with the custom WSP's that we use for SharePoint, and I'm currently trying to solve the problem of how to handle environment-specific ...
1
vote
1answer
988 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
0answers
43 views

SharePoint 2013 autohosted app: Access/Edit the webconfig after deployment

I would like to know if there is the possibility to access the web-config of my autohosted app after it has been deployed. I want to do this for changing some key values e.g. Logging = "False". Is ...
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
114 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 ...
0
votes
1answer
4k views

Sharepoint Web.Config file

I have a 'Custom Connector' sits in GAC, that calls a WCF. I have External Content Type (BDC Model) uses this custom connector. I'm getting an error: Could not find default endpoint element that ...
2
votes
3answers
318 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 ...