The customer said today
[Httpexception (0x80070005): Access to "D: \ WEB. config" is denied. Failed to start monitoring file changes.]
System. Web. dirmoncompletion... ctor (directorymonitor dirmon, string Dir, Boolean watchsubtree, uint32 policyfilter) + 139
System. Web. directorymonitor. startmonitoring () + 42
System. Web. directorymonitor. startmonitoringfile (string file, filechangeeventhandler callback, string alias) + 154
System. Web. filechangesmonitor. startmonitoringdirectoryrenamesandbindirectory (string Dir, filechangeeventhandler callback) + 278
System. Web. httpruntime. firstrequestinit (httpcontext context) + 331
[Httpexception (0x80004005): ASP. NET initialization error]
System. Web. httpruntime. firstrequestinit (httpcontext context) + 982
System. Web. httpruntime. processrequestinternal (httpworkerrequest wr) + 128
--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 1.1.4322.2300; ASP. NET version: 1.1.4322.2300
D: \ WEB \ is the root directory without web. config!
Strange
The aspx program is placed in the virtual directory under the root directory!
I read it online and said it was a permission issue!
Write the everyone permission!
But it is too dangerous to give everyone permissions as a security measure!
After the iis_wpg permission is granted, the program will run normally.
For ease of management, the iis_wpg group (also known as IIS Worker Process Group, IIS Worker Process Group) was created when IIS 6 was installed, and its members include local system (local system) local service, network service, and IWAM account.
Result of viewing with net localgroup iis_wpg
Alias: iis_wpg
Comment IIS Working Process Group
Member
---------------------------------------------------
IWAM_NADL-YY
Nt authority \ Network Service
Nt authority \ Service
Nt authority \ System