简体   繁体   中英

Compiler Error ASP.Net

I am facing the following problem.

CS0016: Could not write to output file 'c:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files\\ac7\\73452b9a\\5e5b0927\\App_Code.j0itviqn.dll' -- 'Access is denied.'

After Googling for 2 days, i gave PERMISSIONS to NETWORK SERVICES in my "Temporary ASPNET Files" and TEMP folder in %Systemroot%. i also checked the "Environmental Variables > System variables" by right clicking MY COMPUTER. Disabled my ANTI VIRUS and still facing the problem.

do any one have any other solution ?

I had solved the same issue. Check that group IIS_IUSRS (or other IIS user group that you use) has full control permission to: "c:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\Temporary ASP.NET Files" and "c:\\WINDOWS\\Temp"

Have you tried deleting everything in your temporary asp.net folder?

Also, try cleaning and rebuilding the solution by right clicking on your solution in the solution explorer in Visual Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM