今天一起床发现程序出问题了,都打不开,出现这样一错误:
编译器错误信息: CS0016: 未能写入输出文件“d:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\bbs\80714b83\4727db24\hrbmea4k.dll”--“拒绝访问。 ”

1块钱抢Iphone6s>>


我急 啊!我就上网去查啦,去msdn一瞧,他们是这样说的:

CAUSE
The system TEMP and TMP variables point to a folder that does not exist. The compiler generates temporary files in the folder where the TEMP and the TMP variables point to before the files are copied to the Temporary ASP.NET Files folder. However, the folder where the system variables point to is deleted when you restart the computer. Therefore, the compiler cannot generate the temporary files.

RESOLUTION
1. Create a temporary folder under %Systemroot%, and then name it Temp. 
2. Grant full permissions on the Temp folder to the aspnet user account in .NET Framework 1.0 or to the NETWORK SERVICE user account in .NET Framework 1.1.
3. Right-click My Computer, and then click Properties.
4. On the Advanced tab, click Environment Variables.
5. Select the TEMP variable under System variables, and then click Edit.
6. Type %SystemRoot%\TEMP in the Variable Value box, and then click OK.
7. Repeat steps 5 and 6 to edit the TMP variable. Click OK two times.
8. Click Start, and then click Run. 
9. To reset Internet Information Services (IIS), type iisreset on the command prompt.

Note If the error message that is mentioned in the "Symptoms" section of this article persists, restart the computer. 
 
我就照办,还是不行;

于是我就想,错误信息不就是说生成文件的时候没权限么?

而且ms也写了与temp文件夹有关系啦。我就把temp的internet来宾权限设置完全。还是不行。

也对啊,编译程序是系统而不是来宾呀。

想了一想就设置 NETWORK SERVICES帐户的权限为修改,就可以了。

汗~~~

我什么都没做,怎么会这样呢?
如果大家有类似的情况,可以先看一下系统环境变量中指向的temp文件夹是不是存在,如果文件夹存在,那一定是权限的问题。

posted on 2006-11-19 10:57  孙华勇  阅读(509)  评论(0编辑  收藏  举报