/// <summary> /// Cleans up legacy components. /// </summary> /// <returns></returns> private bool CleanUpLegacyComponents() { // remove the legacy HttpModules from Web.config var result = new AddHttpModule().Undo(string.Empty, null); // delete legacy files, as they contain references to legacy namespaces, these will be later recreated. var files = new[] { "DataTypeGrid/PreValueWebService.asmx", "MultiNodePicker/CustomTreeService.asmx", "Shared/AjaxUpload/AjaxUploadHandler.ashx", "Shared/WebServices/DictionaryService.asmx", "UrlPicker/UrlPickerService.asmx" }; foreach (var file in files) { result = this.DeletePluginFile(file); } // NotFoundHandlers - update the assembly reference result = this.UpdateNotFoundHandlersConfig(); // XsltExtensions - update the assembly and type references result = this.UpdateXsltExtensionsConfig(); // Macros - update references for RenderTemplate result = this.UpdateMacroReferences(); return(result); }
/// <summary> /// Cleans up legacy components. /// </summary> /// <returns></returns> private bool CleanUpLegacyComponents() { // remove the legacy HttpModules from Web.config var result = new AddHttpModule().Undo(string.Empty, null); // delete legacy files, as they contain references to legacy namespaces, these will be later recreated. var files = new[] { "DataTypeGrid/PreValueWebService.asmx", "MultiNodePicker/CustomTreeService.asmx", "Shared/AjaxUpload/AjaxUploadHandler.ashx", "Shared/WebServices/DictionaryService.asmx", "UrlPicker/UrlPickerService.asmx" }; foreach (var file in files) { result = this.DeletePluginFile(file); } // NotFoundHandlers - update the assembly reference result = this.UpdateNotFoundHandlersConfig(); // XsltExtensions - update the assembly and type references result = this.UpdateXsltExtensionsConfig(); // Macros - update references for RenderTemplate result = this.UpdateMacroReferences(); return result; }