Moloy Adhikary
Moloy Adhikary

Reputation: 67

Windows/Temp folder permission issue for IIS

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

Answers (1)

Jalpa Panchal
Jalpa Panchal

Reputation: 12749

To resolve the issue you could try below steps:

  1. Open iis manager

  2. From the application pools select your site application pool

  3. Click on the advance setting from action pane:

enter image description here

4)from the identity select network service:

enter image description here

  1. click ok.
  • Now go back and select site-> right click on a site and select edit permission

enter image description here

  • Select the Security tab

  • Click the Edit button and then Add button

  • add iis_iusrs and iusr permission

enter image description here

Upvotes: 3

Related Questions