Click here to Skip to main content
15,887,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Environment: Windows 10

I wrote an ISAPI Extension in C which among other things writes a file to C:\Windows\Temp. It works fine on the laptop I wrote it on. Now that I am trying to setup the extension on another computer, it can't write to the temp folder.

On the on it works on, IIS_IUSRS has 'Special' permissions but on the other one, I am unable to set that permission.

What I have tried:

I tried giving IIS_IUSRS write access to C:\Windows\Temp but I get an error message. The message is something about can't enumerate objects. I can't capture the exact message because now it shows that IIS_IUSRS has permission even though it actually doesn't.
Posted
Updated 9-Mar-19 10:26am
Comments
Bryian Tan 9-Mar-19 13:15pm    
The application pool is using which account to run>
Roland M Smith 9-Mar-19 15:33pm    
The default ApplicationPoolIdentity
Bryian Tan 9-Mar-19 15:54pm    
Try remove the access and add again to see what it complaining about.
Roland M Smith 9-Mar-19 16:27pm    
I tried several times to explicity give IIS_IUSRS access to C:\Windows\Temp but I am getting this error:

An error occurred while applying security information to:

Failed to enumerate objects in the container. Access is denied.
Roland M Smith 9-Mar-19 16:41pm    
On my laptop that does not have the problem, I didn't have to fiddle with permissions, it just worked.

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



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