IIS web. config access denied. Failed to start monitoring changes to XX files

Source: Internet
Author: User

Error: An error occurred while loading the configuration file: failed to monitor similar annoying things such as "C: \ Inetpub \ wwwroot \ employ" due to access rejection.

Analysis: This project is stored in the root directory. There is no problem with IIS configuration. Other files can be browsed, And the pages in this folder cannot be browsed. It is strange. Recall that the file was copied by yourself and then added to the project. The reason for finding the cause on the internet is that the users permission is not set to folders and files due to permission settings.

There is also the problem of IIS settings. Check whether an application (or a virtual directory) is created in the subdirectory in IIS. In this case, the Web. config file will be searched in the subdirectory.

Supplement: (transfer)

Error Description: access to the path "*******************" is rejected.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Solution 1

Add the Account "Network Service" under the directory for read/write operations (this role permission needs to control the directory of the entire website ),
In IIS 6.0, network service is used in the default application pool,
Therefore, the network serviceaccount is used to run the w3wp.exe process in the process,
When running vs 2003, we need to perform read/write operations on a directory,
After reading the folder and finding that there is no network service, add the account and select "Full Control" to solve the problem,

In addition, for log4net to write logs, folder permissions must be granted to iis_wpg accounts. Otherwise, logs are not recorded.
**************************************** **************************************** **********

Solution 2
In iis6.0, change the default application pool --> properties --> label to "local system". This problem can also be solved.

**************************************** **************************************** ***********

What is an application pool? This is a brand new concept of Microsoft: The application pool is a configuration that links one or more applications to one or more worker processes. Because applications in the application pool are separated from other applications by working process boundaries, applications in an application pool will not be affected by problems caused by applications in other application pools.

Windows 2003 supports two working modes at the same time. The default is ISS 6.0 Working Process Isolation Mode. Working Process Isolation Mode prevents one application or site from being stopped and affects another application or site, greatly enhancing the reliability of IIS. So how to set two working modes?

In IIS manager, open the local computer, right-click application pool, and choose new application pool (the application pool can be created only in Working Process Isolation Mode ). In the application pool Name box, enter a new application pool name. If the ID (for example, apppool #1) that appears in the "application pool ID" box is not what you want, you can rename it. If you click "use existing application pool as template", right-click the application pool you want to use as the template in the "application pool name" box. Click [OK].

Assign application pool

In IIS manager, right-click the application for which you want to assign an application pool, and then click Properties ". Click the "home directory" tab to confirm whether the "Application name" of the directory or virtual directory you are assigning has been filled in. If the "Application name" box is not yet filled, click "CREATE" and enter a name.

In the application pool list box, select the name of the application pool you want to assign to it. Click [OK].

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.