编译器错误信息: CS0016: 未能写入输出文件,..\Temporary ASP.NET Files\WebApp\d087da43\c12930d8\9ze28k_8.dll”--拒绝访问...

ERROR: 
       CS0013 or CS0016 Compilation Errors in ASP.NET Web Applications

When you view a Microsoft ASP.NET Application in a Web browser, you may receive the following error messages:

For the Microsoft .NET Framework version 1.1, the error message is the following:
CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\application1\c11b43f6\cf3ec03\rizcntet.dll' . The directory name is invalid.

For the .NET Framework 1.0, the error message is the following:
CS0013: Unexpected error writing metadata to file 'C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\application2\3fc72f26\eb731247\ev2bslce.dll'. The directory name is invalid.

Steps to Reproduce the Behavior

  1. Start Microsoft Visual Studio .NET.
  2. Create a new ASP.NET Web Application project by using Microsoft Visual C# .NET or Microsoft Visual Basic .NET, and then name the project CompileTest.
  3. On the Build menu, click Build Solution.
  4. Right-click My Computer, and then click Properties.
  5. On the Advanced tab, click Environment Variables.
  6. Select the TEMP variable under System variables, and then click Edit.
  7. Type %SystemRoot%\TEMP1 in the Variable Value box to point to the nonexistent TEMP1 folder, and then click OK.
  8. Repeat steps 6 and 7 to edit the TMP variable to point to the nonexistent TEMP1 folder.
  9. Click OK two times.
  10. To notice one of the error messages that are mentioned in the "Symptoms" section of

或是:
在windows/temp权限设置里
面把Network service(如果是win2000则是asp.net用户)的权限加上就行。

可参照:
http://support.microsoft.com/default.aspx?scid=kb;en-us;825791

转载于:https://www.cnblogs.com/Rockay/archive/2009/09/11/1564927.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值