A configuration file (web.config) is used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. ... Generally a website contains a single Web.config file stored inside the application root directory.
Question:App_Offline.htm page not working instead showing "The service is unavailable" ?
Description:I have setup App_Offline.htm page but when I try to enable this page it shows the message "The service is unavailable" instead of displaying the actual App_Offline.htm page. I have setup the page by looking at the following link, setup the App_Offline.htm page
Posted by: Umer khan | Posted on: Oct 03, 2022
Question:IIS URL Rewrite rule for redirect http to https and non-www to www using web.config?
Description:Basically I need two separate IIS URL Rewrite rule for my website, one for redirecting visitors from http to https and the other one for redirecting visitors from non-www to www using web.config Previously I was using the solution which was for working fine for me with http but now I have setup the ssl so now I have tried updating the same code but I am having issues with it.
Posted by: Junaid Aziz | Posted on: Apr 01, 2022
Question:Your connection isn't private Attackers might be trying to steal your information from mydomain.com (for example, passwords, messages, or credit cards)?
Description:I am getting following error while I have just installed new ssl certificates for my domain and now I have verified on other machines the website is working fine on multiple other machines but it is only causing this issue on my machine, initially I thought that might be some sort of cache issue but I have tried this on multiple browsers and tried using the incognito windows as well but still with no luck. Error details: Your connection isn't private Attackers might be trying to steal your information from mydomin.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
Posted by: Junaid Aziz | Posted on: Mar 30, 2022
Question:how to increase default session timeout for asp.net mvc site using web.config?
Description:Currently my site’s session expires a bit quickly while my site contains some huge forms for users to fill out so I wanted to increase the session timeout for the users to get enough time.
Posted by: Khalid Abbas | Posted on: Mar 18, 2022
Question:remove server information from response header using web.config in different versions of IIS?
Description:I have different sites hosted on multiple environments one is using IIS 8 and the other one is using IIS 10 , I wanted to remove the server information from the response header using web.config and currently I am using following URL Rewrite Outbound rule but unfortunately it is not working in any of the environment. <rewrite> <outboundRules rewriteBeforeCache="true"> <rule name="Remove Server header"> <match serverVariable="RESPONSE_Server" pattern=".+" /> <action type="Rewrite" value="" /> </rule> </outboundRules> </rewrite>
Posted by: Khalid Abbas | Posted on: Mar 17, 2022
Question:How to setup a redirect from non-www to www (http) for asp.net mvc application preferably using web.config rewrite rules?
Description:I have a website built on asp.net mvc deployed using the latest iis version, where I have URL Rewrite module installed. I have already tried some rewrite rules but found some wrong redirects so I have removed it, now need some urgent workaround as it is current affecting live site!
Posted by: Umer khan | Posted on: Jan 07, 2020
Question:how to setup a "website down for maintenance" page for any major updates in a asp.net (MVC) website?
Description:I have to deploy some major updates in my website build on asp.net MVC and I can't afford to let my site running during the deployment so I need to setup a page which can be displayed during deployment or the site's down time. preferable I need some settings in web.config or at IIS level so that I can easily remove that maintenance page immediately once the deployment process completed.
Posted by: Umer khan | Posted on: Jun 21, 2019
Question:how to implement Cache Busting technique of "File path versioning" or "File name versioning" for asp.net mvc site?
Description:I have studied about cache busting techniques and came to know that there are mainly three such techniques. -File name versioning (e.g. style.v2.css) -File path versioning (e.g. /v2/style.css) -Query strings (e.g. style.css?version=2) Currently I am using the query string for cache busting which is implemented by default in mvc's Bundling and Minification but the query string technique is causing performance issues, so I need to implement any of the other two technique. Need help in this regard!!!
Posted by: Umer khan | Posted on: Aug 24, 2018
Question:how to apply GZIP compression for static and dynamic resources in Asp.net website using web.config?
Posted by: Junaid Aziz | Posted on: Dec 06, 2017