Missing HTTPApi
  • 13 Apr 2025
  • 1 Minute to read
  • Dark
    Light
  • PDF

Missing HTTPApi

  • Dark
    Light
  • PDF

Article summary

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.



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence