Questions tagged [web.config]

A configuration file for ASP.NET web applications in XML format.

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:
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…
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:
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
Cat Mucius
  • 145
  • 1
  • 11
1
2 3 4 5 6 7 8