System.UnauthorizedAccessException:对路径被拒绝VS2013 [英] System.UnauthorizedAccessException: Access to the path is denied VS2013

查看:592
本文介绍了System.UnauthorizedAccessException:对路径被拒绝VS2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在同时通过VS2013运行我的asp.net web应用程序下面的错误。

I am getting following error while running my asp.net web application through VS2013.

错误
System.UnauthorizedAccessException:对路径C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\ ROOT \\ 0c9c5fe5 \\ 51acd19b'。被拒绝

Error: System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0c9c5fe5\51acd19b' is denied.

仅供参考,我收到的一些错误较早,并解决这个错误我删除里面的临时ASP.NET文件\\ ROOT \\文件夹中的所有文件,这上面的错误造成的。

FYI, I was getting some error earlier and to resolve that error I deleted all files inside "Temporary ASP.NET Files\root\" folder which caused above error.

我试过如下:
- 重启动VS2013使用管理员权限!
- 增加了全权限IIS_IUSRS在我的web应用程序文件夹 - C:\\样本\\ ASP.NET \\ WebApp1
- 增加了全权限IIS_IUSRS我ASPNET临时文件夹 - C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\临时ASP.NET文件\\根

I tried following: - Restarted VS2013 using admin privilege! - Added full permissions IIS_IUSRS on my web app folder - C:\Samples\ASP.NET\WebApp1 - Added full permissions IIS_IUSRS on my aspnet temp folder - C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root

请帮帮忙!

推荐答案

是否有任何解决方案中的DLL文件标记为只读?

Are any of the dlls in your solution marked as readonly?

他们是否已经从源代码管理签出?

Have they been checked out from source control?

你有没有更改权限后重新启动?

Did you reboot after changing the permissions?

什么是应用程序池的用户的身份,他们是否有权访问临时文件夹?

What is the identity of the Application Pool User, do they have access to the temp folder?

是您的Web应用程序假冒其他用户呢?

Is your web app impersonating another user at all?

是您的应用程序在做什么启动,可能会导致此?

Is your App doing anything on bootup, that could cause this?

使用Sysinternals的的FileMon 以查看是否另一个进程正在使用它。

Use SysInternals FileMon to see if another process is using it.

这篇关于System.UnauthorizedAccessException:对路径被拒绝VS2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆