CS0013 or CS0016 Asp.net编译错误的问题

本文解决了.NET Framework 1.0及1.1版本中出现的编译错误问题,包括CS0016和CS0013错误,通过设置正确的临时文件夹路径并调整权限配置来修复。
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.

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.

转载于:https://www.cnblogs.com/zmhere/archive/2007/11/09/954449.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值