zoukankan      html  css  js  c++  java
  • C# 編譯錯誤 CS0016 解決方案

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\myapp\xxxxx\xxxxx\App_GlobalResources.xxxxxxx.dll’ — ‘Access is denied. ‘

    I had not done anything in the Global Resources file, but it was showing the error related to this. After doing some research, I found out that, it can be an issue with Antivirus software.

    I stopped the Antivirus software and tried, but still the problem was there. Later I found it was related to permission issue in the Temp folder. To resolve this.


    Go to
    %Systemroot%, normally C:\WINDOWS or C:\WINNT
    Right-click the Temporary folder (mine is C:\WINDOWS\Temp) and select Sharing and Security.
    Select the Sharing tab and Make sure that the folder is shared.
    Select the Security tab and take a look at the list of “Group or user names:”
    NETWORK SERVICE should be in the list. If it is not, click Add and type Network Service in the text box.
    Make sure NETWORK SERVICE have Full Control in the Permissions list. Click OK.


    Restart IIS (Run iisreset) If your machine doesn’t have NETWORK SERVICE or NETWORK SERVICES Group, look for “IIS_IUSRS” and apply same permissions.

    Kyle

  • 相关阅读:
    LNOI2014LCA(树链剖分+离线操作+前缀和)
    CDQ分治与整体二分学习笔记
    BJWC2018上学路线
    NOIP2013火柴排队
    SHOI2008仙人掌图(tarjan+dp)
    作诗(分块)
    COGS314. [NOI2004] 郁闷的出纳员
    bzoj 1691: [Usaco2007 Dec]挑剔的美食家
    COGS1533.[HNOI2002]营业额统计
    bzoj1208: [HNOI2004]宠物收养所
  • 原文地址:https://www.cnblogs.com/lovewife/p/2506191.html
Copyright © 2011-2022 走看看