[Import] discuz! NT user integration (2)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.