Skip to main content
Kofax

NIFTraceService fails to start or does not run

Problem Statement:

Scenario 1:

During reinstallation of ShareScan, the following message appears:

eCopy ShareScan 5.2 - InstallShield Wizard

Package eCopy shareScan 5.2 Server Error:

Error 1920.Service Nuace Imaging Framework Trace Service (NIFTraceService) failed to start. Verify that you have sufficient privileges to start system services.

Scenario 2:

Nuance Imaging Framework Trace service does not start, and immediately stops when attempting to start the service manually with the following error. 

The Nuance Imaging Framework Trace Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

The Event viewer may show the errors

The description for Event ID 0 from source NIF Framework cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

CRITICAL OR UNHANDLED EXCEPTION IN: ShareScanAdminConsole

DETAILS:

NIF.ModuleMgr.ModuleMgrClientSideException: Remote context opening error! ---> System.InvalidOperationException: Pipe is not open

   at Connections.PipeIo.PipeClientIo.GetConnectResponseData()

   at NIF.ModuleMgr.RemoteContextListener.HandleOpenRemoteContext(String clientComputer, String clientChannel, String serverComputer, String serverChannel, IoClassIdPair ioType, IClientIo& outboundChannel, Int32& newContextId)

   --- End of inner exception stack trace ---

   at NIF.ModuleMgr.RemoteContextListener.HandleOpenRemoteContext(String clientComputer, String clientChannel, String serverComputer, String serverChannel, IoClassIdPair ioType, IClientIo& outboundChannel, Int32& newContextId)

   at NIF.ModuleMgr.RemoteContextListener.OpenRemoteContext(String serverComputer, String serverChannel)

   at NIF.ModuleMgr.ModuleMgrHelper.OpenRemoteModuleMgr(String server, String channel)

CRITICAL OR UNHANDLED EXCEPTION IN: ShareScanAdminConsole

DETAILS:

NIF.ModuleMgr.ModuleMgrClientSideException: Remote context opening error! ---> System.InvalidOperationException: Pipe is not open

   at Connections.PipeIo.PipeClientIo.GetConnectResponseData()

   at NIF.ModuleMgr.RemoteContextListener.HandleOpenRemoteContext(String clientComputer, String clientChannel, String serverComputer, String serverChannel, IoClassIdPair ioType, IClientIo& outboundChannel, Int32& newContextId)

   --- End of inner exception stack trace ---

Service cannot be started. System.Xml.XmlException: Root element is missing.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)

   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)

   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

   at System.Xml.XmlTextReaderImpl.Read()

   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

   at System.Xml.XmlDocument.Load(XmlReader reader)

   at System.Xml.XmlDocument.Load(String filename)

   at NIF.SettingMgr.SettingMgrImp.LoadMachineSettings()

   at NIF.SettingMgr.SettingMgrImp.Initialize(XmlNode initSettings)

   at NIF.ServiceMgr.ServiceMgrHelper.InitializeDefaultService(IService service, String xmlElement)

   at NIF.Core.InternalInitialize(CoreFeatures features)

   at NIF.Core.Initialize(String productName, CoreFeatures features, Boolean asyncInit)

   at NIFTraceService.TraceServiceImp.InitiateFramework()

   at NIFTraceService.NIFTraceService.OnStart(String[] args)

   at System.ServiceProcess.ServiceBase.Service...

Resolution:

Files must be deleted in two locations.  Follow the directions below.

  1. Locate the folder C:\ProgramData\Nuance\NIFTraceSvc\1
  2. Delete file niftracesvc.settings
  3. On 32-bit systems locate folder  C:\Windows\System32\config\systemprofile\AppData\Local\Nuance\NIFTraceSvc\1 (*)
  4. On 64-bit systems locate folder C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Nuance\NIFTraceSvc\1 (*)
  5. Delete all the files in the folder (NIFTrace*.bin and niftracesvc.settings).

After that, retry the original operation. 

(*) If Windows is installed somewhere else, change the path accordingly.

Local Administrator permissions may be required to perform these operations.