Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
How to disable restarts of the TIBCO Spotfire Web Player application on critical file and directory changes.
Solution:
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.
TIBCO Spotfire Web Player 5.5, Microsoft .NET Framework 4.0 and earlier
- Open "Registry Editor": Start > Run > Type "regedit" and click OK.
- 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
- Only if you are running a 32-bit process on an x64-based system, navigate here instead:
- Right click on "ASP.NET" > Select "New" > Select "DWORD (32-bit) Value".
- Set "Name" to "FCNMode" (no quotes).
- Double click on newly created "FCNMode" DWORD value.
- Set "Value data" to 1.
- Click OK.
- Restart the Application Pool.
TIBCO Spotfire Web Player 6.0 and later, Microsoft .NET Framework 4.5 and later
- Edit the web.config file (For example: C:\Program Files\TIBCO\Spotfire Web Player\6.0.0\webroot\web.config)
- Find the httpRuntime line:
<httpRuntime targetFramework="4.5"/> - Add fcnMode="Disabled" within the httpRuntime line, resulting in:
<httpRuntime targetFramework="4.5" fcnMode="Disabled"/> - Save the web.config file.
- Restart the Application Pool.
Comments
0 comments
Article is closed for comments.