<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by Huy Le</title> <link>https://world.optimizely.com/blogs/Huy-Le/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>Job Fails Issue</title>            <link>https://world.optimizely.com/blogs/Huy-Le/Dates/2014/3/Job-Fails-Issue/</link>            <description>&lt;p&gt;Here&#39;s a short note on a case we had recently, hopefully it might be useful to somebody.&lt;/p&gt;  &lt;p&gt;A Partner had an issue with a custom EPiServer scheduled job (commerce import) that failed intermittently on their CMS 7 site, the error message that the job failed with was: &amp;quot;Thread was being aborted.&amp;quot;&lt;/p&gt;  &lt;p&gt;We suspected that the application was going down and after some pondering a colleague suggested adding this very useful tool to the site Bin folder which logs application shutdown events on the machine’s Window log:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://epiwiki.se/tools/application-restart-detector/&quot;&gt;http://epiwiki.se/tools/application-restart-detector&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The tool logged the below shutdown event in the Windows logs (Application) on the machine very shortly before the job stopped running.&lt;/p&gt;  &lt;p&gt;This was logged many times on the server:&lt;/p&gt;  &lt;p&gt;Application restarted because:MaxRecompilationsReached    &lt;br /&gt;&amp;#160;&amp;#160; at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Environment.get_StackTrace()     &lt;br /&gt;&amp;#160;&amp;#160; at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()     &lt;br /&gt;&amp;#160;&amp;#160; at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Web.Compilation.DiskBuildResultCache.ShutdownCallBack(Object state)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)     &lt;br /&gt;&amp;#160;&amp;#160; at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()     &lt;br /&gt;&amp;#160;&amp;#160; at System.Threading.ThreadPoolWorkQueue.Dispatch()&lt;/p&gt;  &lt;p&gt;We were still unsure what lay behind the error so we added another tool made by the same colleague, though this didn&#39;t shed any light on the issue this time:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://epiwiki.se/tools/asseblyloaderdetector&quot;&gt;http://epiwiki.se/tools/asseblyloaderdetector&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;A couple of colleagues mentioned that there was a recent bug report concerning EPiServer.Web.Hosting.VirtualPathMappedProvider&lt;/p&gt;  &lt;p&gt;,which we saw was being used on the site in question.&lt;/p&gt;  &lt;p&gt;The =&amp;quot;DynamicContentPreview&amp;quot; VirtualPathMappedProvider was then commented out from the episerverframework config.&lt;/p&gt;  &lt;p&gt;After this was commented out the MaxRecompilationsReached error stopped the job has not failed since.&lt;/p&gt;  &lt;p&gt;The cause of this issue is covered by this recently reported bug:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;Bug #112977: Excessive recompilations causing performance problems&quot;&gt;Bug #112977: Excessive recompilations causing performance problems&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://world.episerver.com/Documentation/Release-Notes/ReleaseNote/?releaseNoteId=112977&quot;&gt;http://world.episerver.com/Documentation/Release-Notes/ReleaseNote/?releaseNoteId=112977&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Thanks to all that gave assistance on this case! //Paul &amp;amp; co&lt;/p&gt;</description>            <guid>https://world.optimizely.com/blogs/Huy-Le/Dates/2014/3/Job-Fails-Issue/</guid>            <pubDate>Mon, 31 Mar 2014 10:35:28 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>