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..
Try re-booting your machine and then clear out c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Initially i also faced a lot of problem on the same. But try this..
The Temporary ASP.NET Filesand 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.
matthisco
Member
104 Points
273 Posts
CS0016: Could not write to output file
Nov 27, 2008 09:12 AM|LINK
Hi Folks,
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
XIII
All-Star
182702 Points
23463 Posts
ASPInsiders
Moderator
MVP
Re: CS0016: Could not write to output file
Nov 27, 2008 12:20 PM|LINK
Hi,
try disabling indexing services for thte temporay files directory.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
matthisco
Member
104 Points
273 Posts
Re: CS0016: Could not write to output file
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?
Thanks again.
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: CS0016: Could not write to output file
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
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
XIII
All-Star
182702 Points
23463 Posts
ASPInsiders
Moderator
MVP
Re: CS0016: Could not write to output file
Dec 04, 2008 09:33 AM|LINK
Or first try an iisreset (start > run > type in iisreset and then return key). Then try to clean the temp folders.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: CS0016: Could not write to output file
Dec 04, 2008 09:42 AM|LINK
>Or first try an iisreset
Good point XIII !
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
visualselvam
Member
30 Points
10 Posts
Re: CS0016: Could not write to output file
Dec 04, 2008 01:00 PM|LINK
Hi,
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.
Happy Programming!!!!!!!!!!!!!!!!!!!!!!!
Regards,
Selvas
supreethksha...
Member
2 Points
1 Post
Re: CS0016: Could not write to output file
Oct 05, 2010 06:21 AM|LINK
Please find the solution at
http://supreethkshankar.webs.com/apps/blog/show/4959215-compiler-error-message-cs0016-could-not-write-to-output-file-access-is-denied-
CS0016: Could not write to output file
hello_bidish...
Member
6 Points
3 Posts
Re: CS0016: Could not write to output file
Aug 03, 2012 09:15 AM|LINK
[RESOLVED]
Hi,
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.