Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am facing this below error

Compiler Error Message: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\Temporary ASP.NET Files\root\305f67d8\d5f9a47c\Profilerkln0_qw.dll' -- 'Access is denied. '

For the folders "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\apccheck\675fad49\be31c372\" and "C:\WINNT\Temp" the user "Network Service" has the permission full control.
Posted
Updated 2-Apr-19 7:34am
Comments
thatraja 17-Mar-11 2:36am    
Hi, Include more details like when? how? etc.,

1 solution

Error in itself is quite self explanatory.

Your ASP.NET application is running on network account and it does not have the permissions to write anything in the folders specified.

Two options:
1. Either provide the access permissions to the network account
2. Or change the account to ASPNET or any other account that has an access.

You can even impersonate the calls using the impersonation tag in Web.Config file. Once a specific user is done by impersonation, give that user account the needed privileges.
 
Share this answer
 
Comments
Espen Harlinn 17-Mar-11 3:48am    
Good reply, my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900