diff --git a/src/Orchard/Data/SessionConfigurationCache.cs b/src/Orchard/Data/SessionConfigurationCache.cs index ad34d0b54..4190e31c4 100644 --- a/src/Orchard/Data/SessionConfigurationCache.cs +++ b/src/Orchard/Data/SessionConfigurationCache.cs @@ -58,6 +58,7 @@ namespace Orchard.Data { using (var stream = _appDataFolder.CreateFile(pathName)) { formatter.Serialize(stream, cache.Hash); formatter.Serialize(stream, cache.Configuration); + stream.Close(); } } catch (Exception e) {