Reputation: 67
I have some applications hosted in IIS on windows 10. When I browse application from browser it shows: CS0016: Could not write to output file.........
What I have already tried is: I have set the Full Control permission for Network Service & IIS_USER for the Windows/Temp folder and the application runs as expected but after every restart of the machine the permission get popped and I fall into the same error.
Is there anything I'm missing?
Thanks in advance.
Upvotes: 2
Views: 5882
Reputation: 12749
To resolve the issue you could try below steps:
Open iis manager
From the application pools select your site application pool
Click on the advance setting from action pane:
4)from the identity select network service:
Select the Security tab
Click the Edit button and then Add button
add iis_iusrs and iusr permission
Upvotes: 3