- Timestamp:
- 06/12/15 14:59:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp/3.3/Plugin.cs
r12428 r12435 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Collections.Concurrent; 3 24 using System.Collections.Generic; … … 5 26 using System.Linq; 6 27 using System.Reflection; 7 using System.Text;8 28 using System.Web.Http; 9 29 using System.Web.Http.Controllers; … … 56 76 AssemblyName = Path.GetFileName(assemblyPath); 57 77 } 58 catch (ReflectionTypeLoadException ex) { 59 StringBuilder sb = new StringBuilder(); 60 foreach (Exception exSub in ex.LoaderExceptions) { 61 sb.AppendLine(exSub.Message); 62 FileNotFoundException exFileNotFound = exSub as FileNotFoundException; 63 if (exFileNotFound != null) { 64 if (!string.IsNullOrEmpty(exFileNotFound.FusionLog)) { 65 sb.AppendLine("Fusion Log:"); 66 sb.AppendLine(exFileNotFound.FusionLog); 67 } 68 } 69 sb.AppendLine(); 70 } 71 AssemblyName = "Error loading assembly: " + sb.ToString(); 78 catch (Exception) { 79 AssemblyName = "Error loading assembly"; 72 80 Controllers.Clear(); 73 81 }
Note: See TracChangeset
for help on using the changeset viewer.