Questions tagged [web.config]

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

116 questions
1
vote
0 answers

URL Rewrite error with Web Applications

I am running an ASP.NET 4.0 website using IIS7 on Windows Server 2008 R2. The site has a number of Web Applications under the main domain (~/site1, ~/site2, ~/site3, etc...). Each Web Application is an instance of the same website source folder…
Nanite
  • 11
  • 2
1
vote
1 answer

IIS: acess denied to Web.Config file

I'm trying to set up a new website in a Windows Server 2003. In this server there is already a website, classic ASP, in port 80. I'm configuring this new one (ASP.NET 3.5) in port 82 with, actually, .NET Framework 4.0, as I keep getting an error…
user761076
  • 199
  • 1
  • 2
  • 10
1
vote
1 answer

machine.config file update crashing the website asp.net

We are using load balancing and have three servers for that. On one of the servers the machine.config file had different machine key then the other two machines. Once we updated the machine key and made the value same as the other two, now we can't…
1
vote
1 answer

Is it possible to use local web.config to enable keep-alive?

Is there any way to enable keep-alive on IIS 7 in a hosted scenario? I attempted to use the answer to this SO question Where (or how) is the keep-alive setting in web.config?. I added the following after the closing…
escist
  • 123
  • 1
  • 6
1
vote
0 answers

How to encrypt a section within web.config using aspnet_regiis -pe or -pef

I am a developer trying to encrypt part of my web.config file in an ASP.NET site (first time I've tried this...). Having repeated failures with all types of syntax changes, so perhaps better to post here. Here is one example of a failure (I copied…
DaniellaMercuryFan
  • 249
  • 1
  • 8
  • 17
1
vote
2 answers

Getting custom web.config sections and their contents in Powershell

I have a web application installed in c:\inetpub\wwwroot_Site1\AppName which has a custom section group and section as follows:
Rob
  • 647
  • 1
  • 7
  • 27
1
vote
1 answer

How to setup IIS to perform basic http authentication against MS SQL database?

how to setup IIS to perform basic http authentication against MS SQL database (and not to use Windows domain) The existing WS-Federated security is mapped to MS SQL database. We'd like to migrate to basic http authentication since it's simpler to…
user83337
  • 11
  • 1
1
vote
2 answers

Is it possible to set these IIS7 settings in a web.config file?

with my IIS7 site, i manually set the bindings for my site. Is it possible to set these bindings in the (local) web.config file? Not a machine or app config file ... but the web.config file? Cheers :)
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
1
vote
1 answer

How do I configure IIS so my Web.config is determined by URL?

I am running a test rig with IIS6 serving an ASP.NET (and Sharepoint) web site. We have several clients, and so we have custom root Web.config files for each client. For this test rig, I want to just serve straight from the Trunk of our source…
0
votes
0 answers

HTTP Error 500.19 - Internal Server Error Config not found error IIS 7

I am trying to deploy a .net core 3.0 MVC application to a web server via IIS 7 and I am getting the following server error: HTTP Error 500.19 - Internal Server Error Config Source: -1: 0: This error occurs when there is a problem reading…
0
votes
1 answer

How to set the "ASPNETCORE_ENVIRONMENT" environmentVariable in the WEBROOT (web.config) with APPCMD.exe?

How am I able to set the sites web.config "ASPNETCORE_ENVIRONMENT" environmentVariable with APPCMD.exe? So far I've tried ending it using /commit:MACHINE/WEBROOT, /commit:webroot and I get the below: appcmd.exe set config "Default Web Site/Help"…
0
votes
2 answers

AWS s3, hide/disable serving the web.config file

Currently we have a site setup in an s3 bucket. This site makes use of a web.config file. However we can navigate to the file via the url: for example, www.mysite.com/web.config will serve the file. Is there a simple way to avoid the web.config to…
Malky.Kid
  • 105
  • 5
0
votes
1 answer

How to restrict access to a specific file on iis windows 2012

IIS on Windows 2012 R2 A website has a number of directories and in one of those directories is restricted-page.html to which I want to restrict access to all except a particular windows user. The rest of the site is to be freely browsable by…
twisted
  • 109
  • 1
  • 2
0
votes
1 answer

IIS starts serving 404's (works for a while!)

This is a funny one that's just started happening. Changes I've recently made: Updated website (not major update, small code changes/bug fixes) Added URL re-write rules to 301 forum to different domain Site otherwise has been untouched for many…
0
votes
2 answers

HTTP Error 500.19 - Internal Server Error physical path missing

I am a newbie trying to publish a asp site onto a webserver, however I am getting error message stating HTTP Error 500.19 - Internal Server Error - Click here for error image . I figured it has to do with the web.config file, but I am not able to…
Dean
  • 11
  • 1