zoukankan      html  css  js  c++  java
  • (转)CS0016: 未能写入输出文件“c:\WINDOWS\xxxxxsktsuj.dll”“拒绝访问。”的处理

    CS0016: 未能写入输出文件“c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\pdms\4bd00155\27c1f67\70sktsuj.dll”--“拒绝访问。 ”错误的处理:

    出现CS0016的原因一般是临时目录的权限不够,至于为什么中途出现这种问题,我尚不清楚,解决的办法是给Windows目录下的临时文件夹Temp的安全选项卡中加入NetWork Service用户并赋予全权。更详尽的解释参考MSDN。

    MSDN给出的解释如下:

    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.


    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.

  • 相关阅读:
    JavaScript对原始数据类型的拆装箱操作
    Javascript继承(原始写法,非es6 class)
    动态作用域与词法作用域
    自行车的保养
    探索JS引擎工作原理 (转)
    C语言提高 (7) 第七天 回调函数 预处理函数DEBUG 动态链接库
    C语言提高 (6) 第六天 文件(续) 链表的操作
    C语言提高 (5) 第五天 结构体,结构体对齐 文件
    C语言提高 (4) 第四天 数组与数组作为参数时的数组指针
    C语言提高 (3) 第三天 二级指针的三种模型 栈上指针数组、栈上二维数组、堆上开辟空间
  • 原文地址:https://www.cnblogs.com/daxia/p/889282.html
Copyright © 2011-2022 走看看