ASPNET user does not have write access to Temporary ASP.NET Files

☆樱花仙子☆ 提交于 2019-11-30 03:33:36

问题


I get the following error when running my Visual Studio 2008 ASP.NET project (start without Debugging) on my XP Professional box:

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

How can I resolve this?


回答1:


Have you tried, the aspnet_regiis exe in the framework folder?




回答2:


I had the same problem. This is what I did:

  1. Go to c:\windows\microsoft.net\framework\v2.0.50727
  2. right click on "Temporary ASP.NET files"
  3. Security tab
  4. Select "Users(xxxxxx\Users) from Group
  5. check "Write"
  6. OK



回答3:


Either grant that user the level of access to that directory, or change the identity that the application's application pool runs under - in IIS Manager, determine what App Pool is used to run your application, then in the App Pool section of IIS Manager, look at the properties for that pool - the tab you want is "Identity" I think (this is off the top of my head).

You can set it to another user account - for example, Crystal Reports .Net requires update and delete access to C:\Temp - so we have a "webmaster" user, with administrator access, and use that identity for those applications.




回答4:


you can right click the Visual Studio & select run as administrator.




回答5:


You can try to fix it using the automated regiis utility aspnet_regiis.ext available in c:\windows\microsoft.net\framework\v2.0.50727

Otherwise just manually add the needed file permissions as noted in the error.




回答6:


I had this problem when trying to build a Web Deployment Project (*.wdploy). Simply creating the folder on the framework path solved the error.




回答7:


Make sure the ASPNET user has permission to write to that folder. Right click on the folder, Properties, Security tab.



来源:https://stackoverflow.com/questions/85941/aspnet-user-does-not-have-write-access-to-temporary-asp-net-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!