zoukankan      html  css  js  c++  java
  • The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access [windows server 2003 | xp]

    The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access

         部署安装web程序时出现下面的错误,看了下是目录缺少权限的问题,其实只要按照要求一步就可以修复的,很多朋友不喜欢看错误提示,耽误了很多时间,下面给出具体的解决办法:

    错误如下:

    2003系统提示错误:

    The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    XP系统会出现如下错误(我是在XP系统下运行的,所以这个错误信心给的详细点):

    Server Error in '/' Application. 

    ________________________________________

    The current identity (530C3E52B37F453\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. 

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Web.HttpException: The current identity (530C3E52B37F453\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace: 

    [HttpException (0x80004005): The current identity (530C3E52B37F453\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]

       System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +3474123

       System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +226

    [HttpException (0x80004005): The current identity (530C3E52B37F453\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]

       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426855

       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88

       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149

    ________________________________________

    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

    解决办法:

    如图:

    The current identity (NT AUTHORITYNETWORK SERVICE) does not have write access  - liwu1983522 -  の↑劫財→

    C:\WINDOWS\Microsoft.NET\缺少必要的权限,加users完全权限即可(找到这个目录,右键属性,安全选项,给user账号加入写权限或者完全权限) 或者 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET这个目录,右键属性,安全选项,给 ASP.NET 帐号加入修改和写入权限

  • 相关阅读:
    分布式文件存储服务器之Minio对象存储技术参考指南
    httpClient4请求工具类实现
    xmake v2.5.9 发布,改进 C++20 模块,并支持 Nim, Keil MDK 和 Unity Build
    聊一聊Jmeter多用户token使用问题
    聊一聊Jmeter用IF控制器处理接口依赖
    SONiC架构分析
    SpringBoot
    微搭低代码能力月报:全新控制台/编辑器、集成企业微信、应用构建提速等
    微搭低代码已集成企业微信
    云开发CloudBase | 基本配置&用户邮箱登录开发
  • 原文地址:https://www.cnblogs.com/mrtom/p/1999690.html
Copyright © 2011-2022 走看看