In a standard development Team, a new employee is most likely to have a headache for the old Team members. So many times, we have arranged for new employees to come in and assign each new instructor as much as possible.
In fact, we do not really care about the capabilities of these new users. In fact, many times, their technical and programming skills are very high, so we are afraid of the power of their innovation, there are countless times in my memory. It is often explained by a newbie, "I didn't do anything", but sometimes the result is a disaster, for example, if a project file of VSS is inexplicably damaged and DailyBuild is inexplicably interrupted, a module that runs very stably suddenly encounters a strange Bug. Even a program that runs normally a second ago suddenly cannot run.
The so-called old birds often have a long dry head, only to find that the original, a small change to a place, and often this change is a coincidence. More often, these old birds program the problem into luck. Luck is good, you can solve the problem, luck is better, and you can find the reason.
In the past two days, an old bird from our Team encountered this problem, ASP. NET project suddenly reported the following error on a machine of A New developer, and the old bird saw the grievance and fearlessness-the other party's subconscious said, "I did nothing, it was okay a minute ago, and suddenly it was like this"
Error message:
CS0016: failed to write the output file
C: \ Windows \ Microsoft. NET \ Framework \ V1.1.4322 \ Temporary ASP. NET File \ logtest \ ae3a7b05 \ 21b60d47 \ kxxnk5bg. dll -- Access Denied
Then laruence made a lot of attempts.
Disable Index Service -- the result is still incorrect!
Restart the machine ---- the result is still incorrect!
Use aspnet_regiis.exe to re-register ---- the result is still incorrect!
Modify the permissions of Network Services under the Temporary ASP. NET File directory to the maximum ---- the result is still incorrect!
Set the starting user of IIS Application Pool to a system user --- succeeded
----- It seems that the permission of the network Service user is incorrect. At last, FileMon is found.
A problem was found in 10 seconds. Originally, Network Services could not access the Temp directory of the system directory.
Does ASP. NET use this directory for compilation? However, after modifying the permissions of the Network Services account on the Temp directory, the problem is solved.
Why does ASP. NET use the Temp directory to compile a file in real time? Second, why is this permission setting suddenly required for a machine that has just been running normally?
If we had a drink at dinner, we almost had a toast to him, because he was lucky!