How to add a web.config file to windows hosting?

Started by Dipak Bhoi, February 06, 2015, 02:00:24 PM

Previous topic - Next topic

Dipak Bhoi

Hello Guys,

Web.config is the main settings and configuration file for an ASP.NET web application. Using web.config file you can customize the behavior of your site.

Using a web.config file, you can control:

  • Database connection strings.
  • Error behavior.
  • Security.

Create a notepad file (txt file) and add your web configuration.

Quote<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<system.web>

</system.web>

</configuration>

Save the txt file with name Web.config.txt.

Upload the file to the root directory, it may be httpdocs .

Rename Web.config.txt file to Web.config by removing the .txt extension.

That's all, Enjoy  :)!!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.