HTTP Listener fails to initialize when lacking SeChangeNotifyPrivilege

Applies to: Windows Server 2016Windows Server 2019, all editions


When initializing a new HTTP Listener using the HttpInitialize function or the .NET HttpListener Class, the operation fails and you receive this error message:

HttpInitialize failed with 5 ( -access denied) 


This issue occurs when the account running the code lacks the SeChangeNotifyPrivilege privilege.


Grant the Bypass traverse checking user right to the relevant account.

This privilege is granted to the Everyone group by default.