23 Sep
Posted by Jayce as Programming, Web
CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files… ‘Access is denied.’
Do you face this problem lately? I did. I have problem to run ASP.NET web application on a fresh installed server. It cannot run ASP.NET even I install .NET Framework 3.5. Web application can be loaded after I register ASP.NET into IIS by using “aspnet_regiis.exe -i -enable“.
However, I faced the problem statement above. So what is the solution? It have something to do with file permission. Just follow below steps to fix it.
Grant full control to two users of your system “Network Service” and “YourComputerName\IIS_IUSERS” on the following folders.
1. C:\Windows\Temp
2. C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
Restart IIS and try run your web application again.
Hope this guide will help.
Obrigado pela dica, resultou !!
De nada.
Thanks very much….
@Vesela: You are welcome.
Hi,
I’m using McAfee VirusScan Enterprise with highly secured settings and found that it was McAfee which was preventing VS to create new file in Windows directory.
Thanks for sharing this anyway
@Waseem Sindhu: You are welcome. FYI, McAfee VirusScan Enterprise is not the best antivirus software out there. I faced issues with it when it cannot detect a simple virus (Detected by AVG Free antivirus). Take me several weeks to clear up all the mess that McAfee caused.
Cool! it very great!
Thanks!
@Richard sun: You are welcome.
Worked for me. Thanks a lot
@simon: Welcome.
thanks a lot, it worked
@Tinkku: You are welcome.
great post. I had to add the user NETWORK_SERVICES and grant a full control. It solved the problem
Thanks! u r awesome!
Thank you soo much! I was fustrated with this problem until I visited your article.
You are welcome.
Thanks! it helped me solve this prob too !
Thanks! u r great!