diff --git a/umbraco/presentation/umbraco/preview/Preview.cs b/umbraco/presentation/umbraco/preview/Preview.cs index 8c5f1e1dcc..8643687db5 100644 --- a/umbraco/presentation/umbraco/preview/Preview.cs +++ b/umbraco/presentation/umbraco/preview/Preview.cs @@ -70,8 +70,15 @@ namespace umbraco.presentation.preview public void SavePreviewSet() { + //make sure the preview folder exists first + var dir = new DirectoryInfo(IO.IOHelper.MapPath(IO.SystemDirectories.Preview)); + if (!dir.Exists) + { + dir.Create(); + } + // check for old preview sets and try to clean - foreach (FileInfo file in new DirectoryInfo(IO.IOHelper.MapPath(IO.SystemDirectories.Preview)).GetFiles(m_userId + "_*.config")) + foreach (FileInfo file in dir.GetFiles(m_userId + "_*.config")) { try { diff --git a/umbraco/presentation/web.config.SHANDEMVAIO.xslt b/umbraco/presentation/web.config.SHANDEMVAIO.xslt index 3d7bf0d214..4e03f02778 100644 --- a/umbraco/presentation/web.config.SHANDEMVAIO.xslt +++ b/umbraco/presentation/web.config.SHANDEMVAIO.xslt @@ -8,7 +8,7 @@ - 4.1.0.betaII + 4.1.0.RC