dependencies.xml locked by another process

Topics: Troubleshooting
Apr 7 at 10:16 AM
Hi,

Randomly our orchard instance will go down and gives an error:
The process cannot access the file 'D:\home\site\wwwroot\App_Data\Dependencies\dependencies.xml' because it is being used by another process.

This server only has one orchard site running (but multiple domains are pointing to the same orchard instance).

So what can lock this file?

Many Thanks

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, FileShare share, Int32 bufferSize)
at System.IO.File.Create(String path)
at Orchard.FileSystems.AppData.AppDataFolder.CreateFile(String path)
at Orchard.FileSystems.Dependencies.DefaultDependenciesFolder.WriteDependencies(String persistancePath, IEnumerable1 dependencies)
at Orchard.FileSystems.Dependencies.DefaultDependenciesFolder.StoreDescriptors(IEnumerable
1 dependencyDescriptors)
at Orchard.Environment.Extensions.ExtensionLoaderCoordinator.SetupExtensions()
at Orchard.Environment.DefaultOrchardHost.SetupExtensions()
at Orchard.Environment.DefaultOrchardHost.BuildCurrent()
at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.Initialize()
at Orchard.Web.MvcApplication.HostInitialization(HttpApplication application) in C:\Development\FE-Corporate\src\Orchard.Web\Global.asax.cs:line 48
at Orchard.WarmupStarter.Starter`1.<>c__DisplayClass11_0.<LaunchStartupThread>b__0(Object state) in C:\Development\FE-Corporate\src\Orchard.WarmupStarter\Starter.cs:line 89