Questions tagged [web-config]

web.config is an XML file that stores the main settings and configuration files for an IIS server.

Web.config is the main settings and configuration file for an ASP.NET web application. The file is an XML document that defines configuration information regarding the web application, as detailed in Microsoft's IIS Settings Locations. The web.config file contains information that controls module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.

It is also important to note that making a change to the web.config file, or simply touching it (updating last modified date), will cause a restart of the IIS app pool.

example:

<?xml version="0.10.4"?>
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
       <customErrors mode="Off" />
    </system.web>
</configuration>

Links:

8663 questions
4
votes
1 answer

webHttpBinding security does not contain message node?

I'm trying to apply a client certificate to a WCF REST Service. I have found some details on applying a client certificate that has the following:
Kyle
  • 17,317
  • 32
  • 140
  • 246
3
votes
5 answers

Can One IIS WebSite host multiple Web Applications of different ASP.NET versions?

I have one web site in IIS, and I would like to have version 2, 3.5, and 4 applications hosted under the same IIS web site. Is this possible? Thought it'd be as easy as modifying the web.config. What I have so far is I created an ASP.NET 3.5 site…
SaltProgrammer
  • 1,045
  • 2
  • 13
  • 29
3
votes
3 answers

sharepoint web service Maximum request length exceeded even if the file is inside the max file size

I have configured the web.config to allow 50 MB but when I try to add an Atachment of 40MB to a sharepoint list it fails. But it works if I increase the maxRequestLength to 52 MB
danae
  • 1,402
  • 1
  • 13
  • 10
3
votes
3 answers

Merging 2 config files

I have a web application that is deployed with web.config file. Are there any tools/ pre-written deployment code that allows merging 2 web.config files including sections? If there is a section already existing, it should just merge the…
G33kKahuna
  • 1,730
  • 7
  • 24
  • 39
3
votes
2 answers

How to apply security on a folder using web.config file?

I have folder on which i want to apply security like the current user who is using the site, can access that folder but if he is not currently logged in then he cannot see the content of that folder or files of that folder. I know we can do it in…
Ram Singh
  • 6,664
  • 35
  • 100
  • 166
3
votes
2 answers

reading content of an config file into the dll associated with it

I have saved strings in a dll application's setting. I want to retireve them. Here is the configuration file for my dll:
Barka
  • 8,764
  • 15
  • 64
  • 91
3
votes
2 answers

Configuring sitecore sites

Within the web.config we have the following:
Anicho
  • 2,647
  • 11
  • 48
  • 76
3
votes
2 answers

Error reading Custom Configuration Section: No parameterless constructor defined for this object

Having a horrible time reading a custom configuration section from web.config: I am using Configuration Section Designer (http://csd.codeplex.com/). UPDATE: here is the error I am getting: System.Configuration.ConfigurationErrorsException: An error…
3
votes
0 answers

web.config transformations in a "WCF service" website

In this video Scott Hanselman shows how you can apply transformations to the web config so that you can have different configuration details for development and deployment. This doesn't seem to be an option in my "WCF service" project though. Is…
Positonic
  • 9,151
  • 14
  • 57
  • 84
3
votes
2 answers

Changes needed to take a default web.config and increase maxStringContentLength

I need to send a lot of text from one of my clients to my server. To do that I know I need to increase maxStringContentLength on the server. I have done a ton of searching on this, and it seems that all the fixes for this start on Step 3. I can't…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
3
votes
5 answers

IIS worker threads issue

I have my site hosted on IIS hosting. Site has feature that needs calling WCF service and then return result. The issue is that site is processing calling to WCF service another web site calling is freezing and not return content fast (this is just…
kseen
  • 359
  • 8
  • 56
  • 104
3
votes
1 answer

Can we override parent website's web.config?

I have a website and a sub website. Now I am facing problem that is my sub website's web.config file is inheriting parent website's web.config file. My parent website's web.config file has some and my sub website does not need these…
Anderson
  • 1,219
  • 2
  • 12
  • 12
3
votes
1 answer

Difference in creating settings manually vs using settings.settings in VS 2010

Is there a difference in manually creating your (let's say db connection string) in the config file vs using the settings interface? I have heard that it's safe to use settings interface. Any reasons why?
DNR
  • 3,706
  • 14
  • 56
  • 91
3
votes
1 answer

Does Visual Studio 2008 has Web.config.Debug and Web.Config.Release for ASP.NET?

As titled, does it? I am pretty sure I saw it in Visual Studio 2010. (I don't have Visual Studio 2010 in the office...) I want to have debug mode use debug server connection string etc. If not, any workaround?
King Chan
  • 4,212
  • 10
  • 46
  • 78
3
votes
2 answers

Problem removing codeSubDirectories elements in sub-application

I have an ASP.NET application with a section in web.config. My main project is in VB.NET but I have a CSCode subdirectory under App_Code written in C#. Now for every new sub application I create I have to create a CSCode…
Mike L
  • 622
  • 7
  • 15