I'm getting an exception while trying to serve two instances of an application (each in its own AppPool) that point to the same physical folder. This happens for every request to the site - I'm testing locally in a controlled dev environment (so it doesn't seem to have anything to do with concurrent requests).
Exception information:
Exception type: IOException
Exception message: The process cannot access the file 'script/app/3164853927b89345077b393826e19c6f563e361e.js' 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, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)
at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile isf)
at System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile(String path, FileMode mode, FileAccess access, FileShare share)
at Cassette.IO.IsolatedStorageFile.Open(FileMode mode, FileAccess access, FileShare fileShare)
at Cassette.Caching.BundleCollectionCacheWriter.WriteBundleContentFile(Bundle bundle)
at Cassette.Caching.BundleCollectionCacheWriter.WriteBundleContentFiles(IEnumerable`1 bundles)
at Cassette.CacheAwareBundleCollectionInitializer.WriteToCache()
at Cassette.CacheAwareBundleCollectionInitializer.Initialize(BundleCollection bundleCollection)
at Cassette.ExceptionCatchingBundleCollectionInitializer.Initialize(BundleCollection bundleCollection)