Seeing the essence rather than the phenomenon--solving asp.net CS0016 problem _ practical skills

Source: Internet
Author: User
Often in a regular development team, a newcomer is the easiest one to make a headache for its veteran players. So many times, we arrange for new hires to come in and assign a mentor to each novice as much as possible.
It's not that we don't value the ability of these novices, in fact, many times, their technical level and programming ability is very high, so we are afraid of their innovative power, countless times in memory, often the new person with a face wronged explanation said, "I did nothing", but the result is sometimes disastrous, For example, a VSS project file was inexplicably destroyed, Dailybuild inexplicably interrupted, a very stable operation of the module suddenly appeared strange bugs. Even a second before the normal operation of the program, suddenly can not run.
Those so-called veteran, often blindfolded head long, only to find out that the original, a little changed a bit, and often this modification is such an opportunity coincidence. And more of the time, these old birds, the problem programmed into the luck that, good luck, you can solve the problem, better luck, you can still find the reason.

These two days a veteran of our team came across such a problem, ASP. NET project suddenly in a new developer's machine to report the following error, the veteran and saw the aggrieved and fearless look---the other side of the subconscious said, "I did not do, a minute ago is good, suddenly this is the"
Error message:
CS0016: Failed to write to output file
C:\Windows\Microsoft.NET\Framework\V1.1.4322\Temporary asp.net file\logtest\ae3a7b05\ 21b60d47\kxxnk5bg.dll--Deny access to

475) this.width=475; >


Then the old bird went on to do a lot of trying
to turn off Indexing Service--the result is still wrong!
Reboot machine----result is still wrong!
Use Aspnet_regiis.exe to re-register----results are still wrong!
Modify Network Services permissions to the temporary asp.net file directory to the highest----result error still!
Modify the startup user for IIS application Pool to---Success for system users
-----appears to be a network Service user's permissions problem, and finally has a direction to find the Filemon

10 seconds to discover the problem, Originally network Services could not access the system directory's temp directory
475) this.width=475; >


asp.net Use this directory for compilation? However, after modifying the permissions of the network Services account for the temp directory, the problem is resolved.
475) this.width=475; >


Veteran himself is also very strange, ASP. Why do I use the temp directory for just-in-time compilation of a file? Second, why did the machine just have no problem, suddenly need to do such a permission set?

When we eat, we almost revered him a cup of wine, because---his luck!

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.