diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index fea625a..3d86808 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0.337")] -[assembly: AssemblyFileVersion("3.0.0.337")] +[assembly: AssemblyVersion("3.0.0.338")] +[assembly: AssemblyFileVersion("3.0.0.338")] diff --git a/Core/Settings.cs b/Core/Settings.cs index 0ba75e8..bb04d29 100644 --- a/Core/Settings.cs +++ b/Core/Settings.cs @@ -156,8 +156,9 @@ namespace ScrewTurn.Wiki { public static string PublicDirectoryName { get { string dir = WebConfigurationManager.AppSettings["PublicDirectory"]; + if(string.IsNullOrEmpty(dir)) throw new InvalidConfigurationException("PublicDirectory cannot be empty or null"); dir = dir.Trim('\\', '/'); // Remove '/' and '\' from head and tail - if(dir == null || dir.Length == 0) throw new Exception("PublicDirectory cannot be null."); + if(string.IsNullOrEmpty(dir)) throw new InvalidConfigurationException("PublicDirectory cannot be empty or null"); else return dir; } }