Server Error in '/' Application.

The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +227
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +738
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +69
   Lucene.Net.Store.NativeFSLock.Obtain() +520

[LockObtainFailedException: Lock obtain timed out: NativeFSLock@C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Lucene.Net.Store.NativeFSLock.Obtain()]
   Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout) +576
   Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir, IndexDeletionPolicy deletionPolicy, Boolean autoCommit, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit) +177
   Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl) +402
   Examine.LuceneEngine.Providers.LuceneIndexer.WriterFactory(Directory d) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:1867
   Examine.LuceneEngine.<>c__DisplayClass7_0.<GetWriter>b__0(String s) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\WriterTracker.cs:44
   System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +73
   Examine.LuceneEngine.WriterTracker.GetWriter(Directory dir, Func`2 factory) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\WriterTracker.cs:44
   Examine.LuceneEngine.Providers.LuceneIndexer.CreateIndexWriter() in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:1832
   UmbracoExamine.BaseUmbracoIndexer.CreateIndexWriter() +128
   Examine.LuceneEngine.Providers.LuceneIndexer.EnsureIndex(Boolean forceOverwrite) in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:661
   Examine.LuceneEngine.Providers.LuceneIndexer.RebuildIndex() in X:\Projects\Examine\Examine\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:749
   UmbracoExamine.UmbracoContentIndexer.RebuildIndex() +53
   Umbraco.Web.WebBootManager.<InitializeResolvers>b__f() +113
   Umbraco.Core.Sync.DatabaseServerMessenger.Initialize() +593
   Umbraco.Core.Sync.DatabaseServerMessenger.Boot() +86
   Umbraco.Web.BatchedDatabaseServerMessenger.Startup() +185
   Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +63
   Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37
   Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x) +230
   Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +141
   Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete) +287
   Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +99
   Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +297
   Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +34

[HttpException (0x80004005): Lock obtain timed out: NativeFSLock@C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Lucene.Net.Store.NativeFSLock.Obtain()]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10109667
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +123
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +181
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +228
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +314

[HttpException (0x80004005): Lock obtain timed out: NativeFSLock@C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock: System.IO.IOException: The process cannot access the file 'C:\home\site\wwwroot\App_Data\TEMP\ExamineIndexes\InternalMember\Index\write.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Lucene.Net.Store.NativeFSLock.Obtain()]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10089908
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0