我如何找到文件web.config [英] How can i find file web.config

查看:169
本文介绍了我如何找到文件web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS 5.1的默认网站的属性中,ASP.NET版本标记为4.0.30319,文件位置为c:\ inetpub \ wwwroot \ web.config,但此路径中没有web.config文件. class ="h2_lin">解决方案

每个Web应用程序都有其自己的web.config文件.如果由于某种原因该文件已被删除或尚未部署,则asp.net引擎将使用machine.config文件.它还将使用此文件进行未在Web应用程序或文件夹中的web.config文件中指定的配置设置.


在部署web.config文件存在或不存在之前,请首先进行检查.项目


完整的设置和注释列表可以在
中找到
machine.config.comments通常位于

\ Windows \ Microsoft.Net \ Framework \ v2.x \ Config


In the properties of default web site of IIS 5.1 ASP.NET version tag is 4.0.30319 and file location is c:\inetpub\wwwroot\web.config but there is no web.config file in this path.

解决方案

Each web application will have its own web.config file. If, by some reason, that file has been deleted or has not been deployed the asp.net engine will use the machine.config file. It will also use this file for configuration settings not specified in the web.config file in the web application or folder.


first check it before deploy web.config file is exist or not in your project


A full list of settings and comments can be found in

machine.config.comments usually located in

\Windows\Microsoft.Net\Framework\v2.x\Config


这篇关于我如何找到文件web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆