Questions tagged [applicationhost]
69 questions
86
votes
9 answers
IIS Config Error - This configuration section cannot be used at this path
I am getting the below error when I try to run my website.
The website is hosted on Windows 2012 R2.
Config error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either…

thenakulchawla
- 5,024
- 7
- 30
- 42
28
votes
2 answers
IIS 7.5 applicationHost.config file is not being updated
I'm currently playing around with the Microsoft.Web.Administration (MWA) namespace in order to adjust our application to configure IIS 7.5 with the new API.
I understood that all IIS level changes should be expressed in the following file (I'm on…

OmriSela
- 566
- 1
- 6
- 15
22
votes
2 answers
How do I prevent Visual Studio from modifying the IIS Express site's phyical path in applicationhost.config?
I have a Visual Studio web application project that, for certain reasons, copies files from multiple projects to a separate output directory. I want to use this output directory as the root of the associated IIS Express site. In IIS Express'…

Bryan
- 1,431
- 1
- 17
- 22
21
votes
5 answers
Command to rebuild applicationHost.config in IIS 7
Is there a way to rebuild the applicationHost.config file in IIS 7 with a Windows command? Or if you can help me fix the issue by modifying this file, that's fine too. When comparing this file to other servers, I'm noticing very important sections…

JustBeingHelpful
- 18,332
- 38
- 160
- 245
8
votes
2 answers
IIS application pool identity account passwords shown in clear text
When I use the appcmd list appool /text:* command, it shows me the application pool identity passwords in clear text. I am able to view the passwords in clear text using Get-WMIObject in PowerShell as well. This can be a…

Hardik
- 101
- 1
- 1
- 3
7
votes
2 answers
Applicationhost.config not showing changes
We have a webserver hosted in Microsoft Azure. It's a Windows Server 2008 R2 Datacenter edition, 64 bit.
For a website hosted on this machine, I need to make changes to the applicationhost.config file. However, changes I made to IIS recently are not…

MeanGreen
- 3,098
- 5
- 37
- 63
7
votes
1 answer
gzip compression not working even though allowed in applicationHost.config
I want to enable gzip compression for my site running on ASP.NET4.5 with IIS7.5, but can't get it to compress.
I'm on shared hosting, so I can't set this in IIS directly.
applicationHost.config
I changed this from Deny to Allow (I read here that I…

Adam
- 6,041
- 36
- 120
- 208
5
votes
1 answer
httpCompression not work inside web.config
Is their anyway to make httpCompression work from inside web.config ?
i try to add this in my web.config but it's does nothing :

zeus
- 12,173
- 9
- 63
- 184
4
votes
1 answer
IIS 8.5 not using applicationHost.config?
Using Windows server 2012 R2 with IIS 8.5.9600.16384
I wanted to change some config options for the IIS because i have a slow first load issue.
All documents i can find tell me that i should edit "…

Timon
- 1,003
- 1
- 9
- 38
4
votes
1 answer
Using ApplicationHost.CreateApplicationHost() to create an Asp.Net post, while loading assemblies from another location
I'm trying to use CreateApplicationHost to create an Asp.Net application host for a simple web server, however I'm getting a System.IO.FileNotFoundException when it attempts to create an instance of my marshalling object:
host =…

Justin
- 84,773
- 49
- 224
- 367
4
votes
1 answer
IIS 8: Custom app pool ID: Value does not fall within the expected range
I have a pair of IIS 8 machines, both with identical app hosts, both with precisely the same machine keys. On one of them, when I try to use a custom account for my application pool id, everything works hunky-dory. On the other, when I attempt to do…

EddieValiant
- 43
- 1
- 5
4
votes
0 answers
Why would I get a "503 - Service Unavailable" error when the service is available?
According to this, a 503 error is "503 Service Unavailable
The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state."
Yet that doesn't seem to be the case for me. I have a Web API…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
4
votes
1 answer
visual studio putting wrong path for virutalDirectory in applicationhost.config?
I recently moved my "My Documents" folder from the C: to the D: drive. This seems to have broken my ability to debug web app in Visual Studio. I'm assuming that visual studio creates entries like the following in applicationhost.config, and I am…

Greylander
- 1,766
- 3
- 19
- 22
4
votes
0 answers
IIS Configuration mystery -- keeps resetting from some default config file?
I have an IIS installation with three websites. I'm using Zend PHP -- each site is being directed to it's own PHP.ini file. My problem is this -- whenever I go into IIS to make a change, or restart IIS, the server, or mess with any configuration…

user3224972
- 51
- 8
3
votes
1 answer
Is there any alternative to configSource in applicationHost.config?
An ASP.NET site is load balanced using ARR (Application Request Routing) in IIS. The corresponding URL rewriting rule is placed in applicationHost.config.
Is there any way to separate this rule in a new config file? The tag configSource is no longer…

Ned
- 1,055
- 9
- 34
- 58