%3CLINGO-SUB%20id%3D%22lingo-sub-501115%22%20slang%3D%22en-US%22%3ESolution%20for%20%E2%80%9CStatic%20compression%20is%20being%20disabled%E2%80%9D%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-501115%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EI%20saw%20%E2%80%9CStatic%20compression%20is%20being%20disabled%E2%80%9D%20error%20in%20Event%20Viewer.%20It%20didn%E2%80%99t%20have%20any%20user-side%20effects%20but%20SCCM%20kept%20sending%20notifications%20about%20it.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20entire%20error%20description%3A%3C%2FP%3E%0A%3CP%3EError%20ID%202264%3A%20The%20directory%20specified%20for%20caching%20compressed%20content%20C%3A%5Cinetpub%5Ctemp%5CIIS%20Temporary%20Compressed%20Files%5Cdomain.com%20is%20invalid.%20Static%20compression%20is%20being%20disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20451px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111014i5911E7E09085F289%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.png%22%20title%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1730501316%22%20id%3D%22toc-hId-1730501316%22%20id%3D%22toc-hId-1730501316%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--821655645%22%20id%3D%22toc-hId--821655645%22%20id%3D%22toc-hId--821655645%22%3EEnvironment%20and%20Settings%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EIIS%20server%20is%20Windows%20Server%202012%20R2%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EThere%20are%20several%20websites%20hosted%20in%20the%20server%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EAnonymous%20Authentication%20is%20enabled.%20It%20uses%20App%20Pool%20Identity%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EStatic%20Compression%20is%20enabled%20on%20both%20server%20and%20website%20level.%20Static%20Compression%20folder%20is%3CCODE%3EC%3A%5Cinetpub%5Ctemp%5CIIS%20Temporary%20Compressed%20Files%3C%2FCODE%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EThere%20are%20sub-folders%20for%20each%20website.%20The%20owner%20of%20these%20folders%20is%20Administrator%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-921154690%22%20id%3D%22toc-hId-921154690%22%20id%3D%22toc-hId-921154690%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1631002271%22%20id%3D%22toc-hId--1631002271%22%20id%3D%22toc-hId--1631002271%22%3ESolution%3C%2FH2%3E%0A%3CP%3ESetting%20application%20pool%20accounts%20as%20the%20owners%20of%20the%20sub-folders%20in%20IIS%20Temporary%20Compressed%20Files%20solved%20the%20issue.%20For%20example%3A%20%3CCODE%3EIIS%20APPPOOL%5Cdomain.com%3C%2FCODE%3E%20local%20account%20should%20be%20the%20owner%20of%20the%20domain.com%20folder.%3C%2FP%3E%0A%3CP%3EIn%20order%20to%20change%20a%20folder%20owner%2C%20follow%20the%20steps%20below%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EDelete%20the%20folder%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3ECreate%20it%20with%20the%20same%20name%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3ERight%20click%20and%20go%20to%20%E2%80%9CProperties%E2%80%9D%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3ESelect%20%E2%80%9CSecurity%E2%80%9D.%20Click%20%E2%80%9CAdvanced%E2%80%9D%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EClick%20%E2%80%9CChange%E2%80%9D%20for%20the%20owner%20field%20at%20the%20top%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22toc-hId-111808064%22%20id%3D%22toc-hId-111808064%22%20id%3D%22toc-hId-111808064%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1854618399%22%20id%3D%22toc-hId-1854618399%22%20id%3D%22toc-hId-1854618399%22%3EMore%20Information%3C%2FH2%3E%0A%3CP%3EWhen%20a%20compression%20folder%20is%20created%20by%20IIS%20application%20pool%20identity%20which%20is%20part%20of%20the%20Administrators%20group%2C%20the%20folder%20is%20owned%20by%20the%20local%20Admin%20group.%20IIS%20checks%20ownership%20on%20existing%20compression%20folders%20when%20application%20pool%20starts.%20If%20it%20isn%E2%80%99t%20the%20owner%2C%20it%20attempts%20to%20delete%20and%20recreate%20the%20folder.%20Subsequent%20app%20pools%20may%20get%20caught%20in%20infinite%20loop%20attempting%20to%20delete%20and%20recreate%20the%20folder%20which%20causes%20the%20error%20mentioned%20above.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-501115%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EI%20saw%20%E2%80%9CStatic%20compression%20is%20being%20disabled%E2%80%9D%20error%20in%20Event%20Viewer.%20It%20didn%E2%80%99t%20have%20any%20user-side%20effects%20but%20SCCM%20kept%20sending%20notifications%20about%20it.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432478%22%20slang%3D%22en-US%22%3ERe%3A%20Solution%20for%20%E2%80%9CStatic%20compression%20is%20being%20disabled%E2%80%9D%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432478%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20just%20found%20another%20solution%20to%20this%20problem%20if%20users%20are%20still%20experiencing%20this.%3C%2FP%3E%3CP%3EI%20had%20this%20issue%20with%20Server%202016%20with%20event%20log%20clogging%20up%20with%20'2264'%20and%20also%20'9009'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Create%20a%20directory%20on%20another%20drive%20(%20other%20than%20C%3A)%2C%3C%2FP%3E%3CP%3E2)%20Go%20into%20IIS%20and%20under%20computer%2C%20double%20click%20'Compression'%2C%3C%2FP%3E%3CP%3E3)%20Change%20'Cache%20directory'%20to%20the%20new%20directory%20from%20step%201.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVoila!%3C%2FP%3E%3CP%3EHope%20this%20helps%20if%20your%20still%20looking%20for%20solutions.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

I saw “Static compression is being disabled” error in Event Viewer. It didn’t have any user-side effects but SCCM kept sending notifications about it.

 

The entire error description:

Error ID 2264: The directory specified for caching compressed content C:\inetpub\temp\IIS Temporary Compressed Files\domain.com is invalid. Static compression is being disabled

 

2.png

 

Environment and Settings

  • IIS server is Windows Server 2012 R2
  • There are several websites hosted in the server
  • Anonymous Authentication is enabled. It uses App Pool Identity
  • Static Compression is enabled on both server and website level. Static Compression folder is C:\inetpub\temp\IIS Temporary Compressed Files
  • There are sub-folders for each website. The owner of these folders is Administrator

 

Solution

Setting application pool accounts as the owners of the sub-folders in IIS Temporary Compressed Files solved the issue. For example: IIS APPPOOL\domain.com local account should be the owner of the domain.com folder.

In order to change a folder owner, follow the steps below:

  1. Delete the folder
  2. Create it with the same name
  3. Right click and go to “Properties”
  4. Select “Security”. Click “Advanced”
  5. Click “Change” for the owner field at the top

 

More Information

When a compression folder is created by IIS application pool identity which is part of the Administrators group, the folder is owned by the local Admin group. IIS checks ownership on existing compression folders when application pool starts. If it isn’t the owner, it attempts to delete and recreate the folder. Subsequent app pools may get caught in infinite loop attempting to delete and recreate the folder which causes the error mentioned above.

1 Comment
Occasional Visitor

I have just found another solution to this problem if users are still experiencing this.

I had this issue with Server 2016 with event log clogging up with '2264' and also '9009'.

 

1) Create a directory on another drive ( other than C:),

2) Go into IIS and under computer, double click 'Compression',

3) Change 'Cache directory' to the new directory from step 1.

 

Voila!

Hope this helps if your still looking for solutions.