- 13 Apr 2025
- 1 Minute to read
- Print
- DarkLight
- PDF
Missing HTTPApi
- Updated on 13 Apr 2025
- 1 Minute to read
- Print
- DarkLight
- PDF
Problem
Pharos Print Spooler service is not starting up.
SecurePrintService.log is showing the error message regarding “HttpApi”
1) Exception Information
=============================================
Exception Type: System.TypeInitializationException
TypeName: HttpApi
Message: The type initializer for 'HttpApi' threw an exception.
HelpLink: NULL
Source: System
HResult: -2146233036
StackTrace Information
=============================================
at System.Net.HttpListener..ctor()
at PharosSystems.SecurePullPrint.Service.WebHostSlim.WebServiceHostSlim.Open()
at PharosSystems.SecurePullPrint.Service.JobMetaDataServiceHost.Start()
at PharosSystems.SecurePullPrint.Service.SecurePrintService.InitializationRoutine(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
2) Exception Information
=============================================
Exception Type: System.DllNotFoundException
Message: Unable to load DLL 'httpapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
TypeName:
HelpLink: NULL
Source: System
HResult: -2146233052
Root cause
Chanced are the file named “httpapi.dll” in C:\WINDOWS\System32 folder might be missing or corrupted.
Solution
Obtain a copy of the httpapi.dll file in C:\WINDOWS\System32 from a working computer and put it in C:\WINDOWS\System32 of the affected computer. Then restart the computer.