Questions tagged [web-config]

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 web.config file contains information that controls module loading, security configuration, session state configuration.

0
votes
1answer
81 views

SharePoint - 80 : Error: The web.config is invalid on this IIS Web Site:

I tried to deploy a .wsp solution to my SP farm. But I met the following error: Last Operation Result: Some of the files failed to copy during deployment of the solution. Last Operation ...
0
votes
0answers
27 views

SharePoint Web Part error After Reinstalling IIS Features

Recently there was a IIS features reinstallation done on my server to resolve FBA login issues. The login is fixed now, but I am facing web part errors. Error: Web Part Error: A Web Part or Web Form ...
0
votes
1answer
139 views

View the web.config used in the farm

I recently faced an issue with the workflows of SharePoint 2013 on premises(2 WFE and 1 App Server). They have stopped working and the problem is a .NET security update. Microsoft has a script for ...
3
votes
4answers
51 views

Where are SPWebConfigModification Objects Stored in the DB

Based on my understanding, it's stored in the SharePoint Config DB but I couldn't find it. It's not found in the "Objects" table nor at any other table. The background is I need to execute this ...
0
votes
1answer
41 views

Application Initialization on HTTPS

I am looking for some guidance on how to warm up my web application after app pool recycle. So far I used standard Powershell warm-up scripts, but due to company policy we might need to find another ...
0
votes
0answers
221 views

Workflow “Failed on start” whenever call by PowerShell

We are using SP2010. I have prepared a PowerShell script to trigger particular workflow on particular object. Here is the script: $web = Get-SPWeb "http://url/"; $list = $web.Lists["My list"]; $...
1
vote
1answer
35 views

Redirect without using httpmodule

While something is updating on site pages, I need catch the requests to them and redirect to page notifying about updates. How I can realize redirecting in easier way than adding a httpmodule? As far ...
1
vote
4answers
2k views

How to Increase Session Time out in Sharepoint?

I have one site collection where I need a data from Session Storage. So I enable my Session from web.config. I know it is not recommended Session in Sharepoint, but my client needs it. So Basically ...
0
votes
1answer
835 views

executionTimeout and maxRequestLength role in sharepoint web applications web.config

i have sharepoint 2010 web application which has document center site collections and we want to upload some documents daily upto 500 MB - 700 MB what are the below configuration settings mean in web....
1
vote
2answers
237 views

Sharepoint site is not opening ? Http Error 500.19 - Internal server Error

When we are logged in SharePoint, site Web.config file its get updated with following line. <SafeControl Assembly="MyCustomAssembly" Namespace="MyCustomNamespace" TypeName="*" Safe="True" /> ...
1
vote
0answers
34 views

A Web Part on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe

A slight variation on an old chestnut of a problem. I have a SP2007 farm which we are upgrading to SP2010. We are carrying out UAT on our dev platform before conducting the full live environment ...
2
votes
0answers
82 views

Can SharePoint 2010 support validateRequest=“true”?

By default, web application web.configs have validateRequest="false". Changing it to true breaks SharePoint significantly, based on my own trials. People Pickers don't work, half the form pages don't ...
0
votes
2answers
2k views

How to troubleshoot the web.config runtime error in sharepoint 2010 environment?

There are telerik control assembly entries in the config file. How can I know root cause of this error? Server Error in '/' Application. Runtime Error Description: An application error occurred on ...
1
vote
3answers
485 views

Error in web.config of sharepoint central admin in SP 2013 on-prem

am getting the below error after running the config wizard of my sp 2013 server farm Log Name: Application Source: SharePoint 2010 Products Configuration Wizard Date: 12/9/...
1
vote
0answers
266 views

Sharepoint 2010 : not able to deploy new sharepoint solution

I was working on Sharepoint visual solution, all my webparts works fine, I don't know what happened but when I create new visual webpart (with label in it)I was not able to deploy error message : ...
1
vote
1answer
302 views

Check if App.config is well configured

I want to connect to sql DB, and I have in my Sharepoint project an App.config (with properties : Build "None", Copy to Output directory"Copy always"), I added a reference to System.Configuration.dll (...
1
vote
0answers
45 views

App Config not working

I have a sharepoint code, where I use connection to sql database, when I use a string to connect it works, string connstr = "Data Source=CH-SQLD;Initial Catalog=LOGS;User ID=***;Password=***"; ...
2
votes
1answer
332 views

Web.config error when adding new server to production SP 2013 Foundation farm

First off, I've been scouring the posts here and elsewhere looking for a solution to this issue, and I appreciate any help. The closest I have found is here, but the answer was not followed-through. ...
0
votes
1answer
62 views

Sharepoint FBA: web.config AD Distinguished name path

I'm trying to set up FBA on a SharePoint 2013 farm. I am to the point of modifying the security token service web.config file. Here i am using this Technet article. I am confused about this part: (...
0
votes
1answer
550 views

How to create a Rest wcf service on SharePoint?

I'm trying to make a WCF Rest service inside SharePoint. but it doesn't work and I get 404 :( I set the svc file like that <%@ ServiceHost Language="C#" Debug="true" Service="MyNamespace....
0
votes
1answer
27 views

SharePoint 2010 WFEs (2) in same farm require different compatability modes

I have a SP 2010 Farm with 2 WFEs. The WFEs are load balanced and users, when they get switched (round robin, usage based polling on load balancer) they have to go in and deselect the compatibility ...
3
votes
2answers
2k views

IIS Custom Error Page for common error

I have SharePoint 2013 Enterprise on Windows 2012. Configure as website. I have also configure Page Not found (error 404) on my SharePoint. Now Situation is that when there is error as below on ...
1
vote
5answers
1k views

Could not load the Web.config configuration file. The given key was not present in the dictionary.

I'm trying to launch debugging on Visual Studio 2012 and it shows me this error message : By googling a little bit, I read that I should remove the 10 directory located in : C:/users/username/...
2
votes
1answer
366 views

Best practice for calling web service from Sharepoint List Item Event Receiver

What is the recommended way to introduce the invocation of an ASP.NET web service from a SharePoint list item event receiver (specifically, a MOSS 2007 document library)? I don't want to tightly ...
1
vote
1answer
646 views

SharePoint 2013 “Runtime Error”

I'm receiving this error when trying to check-in a document in a document library (it's only occurring on this document library). Server Error in '/' Application. You must fill out all required ...
0
votes
1answer
201 views

SharePoint Online Turn off customErrors to view more about the error not working

When deploying a provider hosted SharePoint App on SharePoint online via an Azure web page, I get a Runtime error message, instructing me to turn off customErrors to view more about the error. I have ...
2
votes
0answers
645 views

Cannot open office files on SP 2013 using IE 11

I have a working Web App with FBA and a site containing a document library with office files. When using IE11, whenever I click on any of the files, I am prompted to login. After entering credentials, ...
0
votes
0answers
167 views

What configuration files change when installing SharePoint 2013?

SharePoint is installed on the root Folder of IIS, sub-sites are in a folder under the root, and it's running on a Server 2008 R2 machine. To start, i'm asking this question because after installing ...
1
vote
0answers
74 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
201 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 ...
1
vote
1answer
205 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 ...
1
vote
1answer
77 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: ...
1
vote
2answers
845 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
1answer
61 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 ...
2
votes
0answers
888 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
62 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."
1
vote
4answers
70 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 ...
1
vote
1answer
403 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 ...
1
vote
1answer
10k 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 ...
0
votes
1answer
72 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 ...
1
vote
2answers
945 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 ...
0
votes
1answer
3k 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 ...
1
vote
0answers
2k 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
35 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
30 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
636 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 ...
2
votes
2answers
765 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 ...
1
vote
1answer
4k 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 seems ...
0
votes
3answers
9k 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
1answer
506 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 ...