diff --git a/Database/Database-OptionalData.cs b/Database/Database-OptionalData.cs index 422e98d1..15f6313b 100644 --- a/Database/Database-OptionalData.cs +++ b/Database/Database-OptionalData.cs @@ -40,11 +40,19 @@ namespace Activizr.Database { string objectOptionalDataTypeString = reader.GetString(2); string data = reader.GetString(3); - ObjectOptionalDataType objectOptionalDataType = - (ObjectOptionalDataType) - Enum.Parse(typeof(ObjectOptionalDataType), objectOptionalDataTypeString); - initialData[objectOptionalDataType] = data; + try + { + ObjectOptionalDataType objectOptionalDataType = + (ObjectOptionalDataType) + Enum.Parse(typeof(ObjectOptionalDataType), objectOptionalDataTypeString); + + initialData[objectOptionalDataType] = data; + } + catch (Exception) + { + // Ignore unknown enums at this point - too many disconnects between v4 and v5 -Rick + } } return new BasicObjectOptionalData(objectType, objectId, initialData); diff --git a/Site5-Deployment/Site5-Deployment.wdproj b/Site5-Deployment/Site5-Deployment.wdproj index 36cbbe20..28c5519f 100644 --- a/Site5-Deployment/Site5-Deployment.wdproj +++ b/Site5-Deployment/Site5-Deployment.wdproj @@ -14,7 +14,7 @@ ..\Site5 {367F36EA-AE1C-4E15-BAF9-BA75B18B3807}|C:\Lab\Activizr\Site5 /Site5 - v2.0 + v3.5 true diff --git a/Site5/App_Code/PageV5Base.cs b/Site5/App_Code/PageV5Base.cs index 96a29528..23dfaf68 100644 --- a/Site5/App_Code/PageV5Base.cs +++ b/Site5/App_Code/PageV5Base.cs @@ -61,6 +61,10 @@ public class PageV5Base : System.Web.UI.Page protected override void OnPreInit(EventArgs e) { + // Unlock Telerik + + this.Application["Telerik.Web.UI.Key"] = "Activizr"; + // Localization // Set default culture (English, United States, but that doesn't work so fake it to GB) diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 74c9530e..39357bd5 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -14,6 +14,10 @@ namespace Activizr.Pages.Security { protected void Page_Load(object sender, EventArgs e) { + // Unlock Telerik + + this.Application["Telerik.Web.UI.Key"] = "Activizr"; + this.LabelLoginFailed.Visible = false; this.TextLogin.Focus();