- Timestamp:
- 05/11/09 13:35:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/DeSerializer.cs
r1703 r1779 74 74 try { 75 75 type = Type.GetType(typeMapping.TypeName, true); 76 } catch (Exception e) {76 } catch (Exception) { 77 77 Logger.Error(String.Format( 78 78 "Cannot load type \"{0}\", falling back to loading with partial name", typeMapping.TypeName)); 79 79 string[] typeNameParts = typeMapping.TypeName.Split(new[] { ',' }); 80 Assembly a = Assembly.LoadWithPartialName(typeNameParts[typeNameParts.Length - 1].Trim()); 81 Array.Resize(ref typeNameParts, typeNameParts.Length - 1); 82 type = a.GetType(string.Join(",", typeNameParts), true); 80 try { 81 Assembly a = Assembly.LoadWithPartialName(typeNameParts[typeNameParts.Length - 1].Trim()); 82 Array.Resize(ref typeNameParts, typeNameParts.Length - 1); 83 type = a.GetType(string.Join(",", typeNameParts), true); 84 } catch (Exception) { 85 throw new PersistenceException(String.Format( 86 "Could not load type \"{0}\"", 87 typeMapping.TypeName)); 88 } 83 89 } 84 90 typeIds.Add(typeMapping.Id, type); … … 87 93 } 88 94 return map; 95 } catch (PersistenceException) { 96 throw; 89 97 } catch (Exception e) { 90 98 throw new PersistenceException(
Note: See TracChangeset
for help on using the changeset viewer.