当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“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: 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“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): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]
System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +744
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +225[HttpException (0x80004005): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +936
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +150
我从网络上找到很多方法,包括重新安装.net2.0,删除Temporary ASP.NET Files目录,重新创建,重新设置权限,还有temp的权限,包括清空,等等,试了很多方法,实在是无奈了,上午我重新编译程序,没有停止服务,就把服务器上的程序删除了,然后把编译好的程序重新放了是上去,结果再打开就出问题了!!
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: 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“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): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]
System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +744
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +225[HttpException (0x80004005): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +936
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +150
我从网络上找到很多方法,包括重新安装.net2.0,删除Temporary ASP.NET Files目录,重新创建,重新设置权限,还有temp的权限,包括清空,等等,试了很多方法,实在是无奈了,上午我重新编译程序,没有停止服务,就把服务器上的程序删除了,然后把编译好的程序重新放了是上去,结果再打开就出问题了!!
查看bin目录,添加权限
<customErrors defaultRedirect="url" mode="On|Off|RemoteOnly"> <error statusCode="statuscode" redirect="url"/></customErrors>?从来没用过,
ok!