A configuration file for ASP.NET web applications in XML format.
Questions tagged [web.config]
113 questions
68
votes
6 answers
IIS complains about a locked section - how can I find out where it's locked?
I have this section in my web.config:
![](../../users/profiles/151.webp)
Michael Stum
- 4,010
- 4
- 35
- 48
18
votes
4 answers
IIS7 - Lock Violation error, HTTP handlers, modules, and the element
I have an ASP.NET site that uses its own set of HTTP handlers and does not need any modules.
So, in IIS6, all I had to do was this in my web.config:
However, if I try to do the same in the system.webServer…
![](../../users/profiles/634.webp)
Daniel Schaffer
- 465
- 1
- 6
- 12
17
votes
2 answers
Prevent URL Rewrite rules from being inherited by subdirectories in IIS7
I have a URL Rewrite setup for clean URLs in a CMS and my web.config looks like this:
![](../../users/profiles/145562.webp)
Rich Jenks
- 431
- 1
- 3
- 8
15
votes
4 answers
IIS7: How to block access with a web.config file?
I know that IIS7 allows me to have a per directory configuration with the web.config xml file. I have a directory with some configuration files that don't want to be web accessible. A local web.config file forbidding read access to it would be a…
![](../../users/profiles/22369.webp)
neves
- 1,160
- 2
- 11
- 16
11
votes
4 answers
Could you tell me what exactly happens when we edit the Web.config (at runtime) on a IIS server?
Could you tell me what exactly happens when we edit the Web.config (at runtime) on a IIS server.
Is the application that depend of the web.config automatically restarted? If yes is it possible to cancel the automatic restart (or reload of the…
![](../../users/profiles/24590.webp)
Bastien Vandamme
- 251
- 1
- 2
- 8
9
votes
4 answers
How to configure a Web.Config file to allow custom 404 handling while still displaying on-page 500 error detail?
To customize 404 handling and based on the hosting company's suggestion, we are currently using the following web.config setup. However, we quickly realized that with this configuration, any page error (500 error) are also getting redirected to…
Mark
9
votes
1 answer
The configSource file 'connections.config' is also used in a parent, this is not allowed.
Question:
I face the following situation:
A ASP.NET .NET 4.0 web-application deployed on machine "vmsomething".
The web-application running on IIS 7.5 resides in d:\webs\myapplication on vmsomething.
The application's config…
![](../../users/profiles/55397.webp)
Quandary
- 974
- 4
- 18
- 34
9
votes
3 answers
Need help with some IIS7 web.config compression settings
I'm trying to configure my IIS7 compression settings in my web.config file. I'm trying to enable HTTP 1.0 requests to be gzip.
MSDN has all the info about it here.
Is it possible to have this config info in my own website's web.config file? Or do i…
![](../../users/profiles/58.webp)
Pure.Krome
- 6,338
- 17
- 72
- 86
7
votes
2 answers
Application Settings outside of web.config
I need to keep the production app settings section outside of Web.config; I don't want keys and other secret information to be kept inside source code repository. However, if I edit the app settings with IIS Mananger it changes the Web.config, which…
![](../../users/profiles/34304.webp)
Mircea Chirea
- 424
- 7
- 20
6
votes
6 answers
Javascript Errors only on Production Server?
I am in the process of releasing a couple of asp.net websites from development to production. Everything seems to be working fine in development, but upon the release to production we get a number of javascript errors when accessing the site. This…
![](../../users/profiles/7693.webp)
ChrisHDog
- 243
- 1
- 3
- 8
5
votes
2 answers
Basic HTTP Authentication in IIS
Forgive my lack of IIS experience, but I have a user on a hosted server running IIS with Plesk. He uses protected folders, and I'm looking for a way to:
Allow him to protect folders using a simple username/password combo
Whitelist a static IP so…
![](../../users/profiles/112417.webp)
Aksival
- 151
- 4
4
votes
1 answer
Why can't IIS read Web.config within a folder created by Bash on Windows?
If I use bash (from Ubuntu 18.04 running via Windows Subsystem for Linux) to create a directory under my Windows profile:
$ mkdir /mnt/c/Users/mdmower/source/repos/WebBash
then IIS 10 is unable to read Web.config directly under that directory. As a…
![](../../users/profiles/227916.webp)
MDMower
- 186
- 6
4
votes
0 answers
Shared Configuration and AppSettings
We use Shared Configuration for our IIS config, so the same config is used by the webservers. This works well.
We like to share some server-level between the servers. (in IIS manager, select Server -> Application Settings) Will the…
![](../../users/profiles/203877.webp)
Julian
- 93
- 6
4
votes
1 answer
Restrict access to a subdomain with web.config on IIS7?
I need to password protect a "dev" subdomain on a server with the web.config file on IIS7. I don't have access to anything besides the files and web.config, so I can't install modules or anything else like that sadly. I've checked about 6 other…
![](../../users/profiles/228429.webp)
Brett
- 41
- 4
4
votes
3 answers
How to forbid usage of web.config files?
I have a Windows 2008 R2 server with IIS7.5 installed.
I need to provide users with read-write access to some directory tree via WebDAV. The same users will also be able to reach the same directories by other means - FTP, SFTP, CIFS, etc.
My aim: I…
![](../../users/profiles/163276.webp)
Cat Mucius
- 145
- 1
- 11