Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 03, 2012 09:15 AM by hello_bidisha
Nov 27, 2008 09:12 AM|LINK
I've spent the past two days trying to sovle this issue, I've found loads of solutions in google, but I cant seem to get them to work.
I'm trying to view my asp pages but I keep getting this error:
CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\mpjk_wvn.dll' -- 'Access is denied. '
I've changed the environment variables with no luck.
I've tried changing the temp directory with no luck, although when I select the properties is says its read only. I give the NETWORK SERVICE account full access, then it changes back again to read only..
Is this whas causing it?
Please help, thanks in advance
Nov 27, 2008 12:20 PM|LINK
try disabling indexing services for thte temporay files directory.
Nov 27, 2008 12:36 PM|LINK
I've tried that still no joy.
The only solution that seems to work is a reinstall, I really dont want to do that though.
Any more ideas?
Dec 04, 2008 09:19 AM|LINK
Try re-booting your machine and then clear out c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
Dec 04, 2008 09:33 AM|LINK
Try re-booting your machine
Or first try an iisreset (start > run > type in iisreset and then return key). Then try to clean the temp folders.
Dec 04, 2008 09:42 AM|LINK
>Or first try an iisreset
Good point XIII !
Dec 04, 2008 01:00 PM|LINK
Just try this Start-->Run-->%temp% and then delate all temperorary files.And also Start-->Run-->iisreset..
Finally you can create a virtual directory for your application Start-->Run-->inetmgr.
Oct 05, 2010 06:21 AM|LINK
Please find the solution at
CS0016: Could not write to output file
Aug 03, 2012 09:15 AM|LINK
Initially i also faced a lot of problem on the same. But try this..
The Temporary ASP.NET Files and C:\Windows\temp folders should have
IIS_IURS and NETWORK SERVICE users with the
full control permission.
Right click on the Temporary ASP.NET Files folder and go to the security tab. Give the full control permission and NETWORK SERVICE and IIS_IURS. If network service is not there then add it and give full control permissions.
Once you applied those setting, restart your IIS and try to run your application again. The error should be gone by now.