How to disable restarts of the TIBCO Spotfire Web Player application on critical file and directory changes.

How to disable restarts of the TIBCO Spotfire Web Player application on critical file and directory changes.

book

Article ID: KB0079369

calendar_today

Updated On:

Products Versions
Spotfire Web Player 7.0 and lower

Description

The Web Player application will restart automatically if the critical directories monitored by IIS and ASP.NET are modified or accessed. For example, often this will be due to an anti-virus scan on the Web Player's webroot folder. An error such as the following will be seen in the Web Player Spotfire.Dxp.Web.logs:
INFO  2014-05-30 07:10:53,556 [17, (null)] Spotfire.Dxp.Web.Forms.Global - Application shutdown reason:Change Notification for critical directories.
bin dir change or directory rename
HostingEnvironment initiated shutdown
Change Notification for critical directories.
bin dir change or directory rename
HostingEnvironment caused shutdown
DEBUG 2014-05-30 07:10:53,556 [17, (null)] Spotfire.Dxp.Web.Forms.Global - Application shutdown callstack:   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
   at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)
   at System.Web.HttpRuntime.OnCriticalDirectoryChange(Object sender, FileChangeEvent e)
   at System.Web.FileChangesMonitor.OnCriticaldirChange(Object sender, FileChangeEvent e)
   at System.Web.DirectoryMonitor.FireNotifications()
   at System.Web.Util.WorkItem.CallCallbackWithAssert(WorkItemCallback callback)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
DEBUG 2014-05-30 07:10:53,587 [17, (null)] Spotfire.Dxp.Web.SiteManager - Web Player server shutting down on host 'MY-SERVER'.

This monitoring of the file system can be disabled to prevent these Web Player application restarts. Note, this will only be required when it is not possible to reconfigure the external application that is causing the restarts to avoid accessing these critical monitored folders. Other use of this settings is not recommended.
 

Issue/Introduction

How to disable restarts of the TIBCO Spotfire Web Player application on critical file and directory changes.

Resolution

TIBCO Spotfire Web Player 5.5, Microsoft .NET Framework 4.0 and earlier
  1. Open "Registry Editor": Start > Run > Type "regedit" and click OK.
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET
    • Only if you are running a 32-bit process on an x64-based system, navigate here instead:
      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET
  3. Right click on "ASP.NET" > Select "New" > Select "DWORD (32-bit) Value".
  4. Set "Name" to "FCNMode" (no quotes).
  5. Double click on newly created "FCNMode" DWORD value.
  6. Set "Value data" to 1.
  7. Click OK.
  8. Restart the Application Pool.

TIBCO Spotfire Web Player 6.0 and later, Microsoft .NET Framework 4.5 and later
  1. Edit the web.config file (For example: C:\Program Files\TIBCO\Spotfire Web Player\6.0.0\webroot\web.config)
  2. Find the httpRuntime line:
    <httpRuntime targetFramework="4.5"/>
  3. Add fcnMode="Disabled" within the httpRuntime line, resulting in:
    <httpRuntime targetFramework="4.5" fcnMode="Disabled"/>
  4. Save the web.config file.
  5. Restart the Application Pool.

Additional Information

Microsoft Article ID 911272: