My Asp.net ProgramWhich web. config file is read?
A. under the IIS6 model, if the BBS virtual directory is created under the website myweb and the application pool is created for the BBS, then the Asp.net program running under BBS will read the web under the BBS directory. config. if there is no web under the BBS directory at this time. config file, the program will check whether the root directory of the site myweb exists in the web. config file. If it exists, use its configuration. If it does not exist, an error is returned.
B. If BBS is not a virtual directory, or it is a virtual directory but there is no application pool, the program will read the Web. config file under the root directory of the website.
At the beginning, I created a virtual BBS directory under the root directory of the website, and did not create an application pool for the BBS directory. Therefore, BBS uses the Web. config in the root directory of the website, because the subdirectory inherits the Web. config in the root directory.
Therefore, I will integrate BBS web. config into the root.
ArticleSource: http://aspx1314.cn /? P = 498