Browse Source

Ignore FileLoadException thrown when attempting to load an unverifiable assembly.

4.0
Matt Ward 15 years ago
parent
commit
540b66cc37
  1. 4
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/TypeResolutionService.cs

4
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/TypeResolutionService.cs

@ -264,6 +264,10 @@ namespace ICSharpCode.FormsDesigner.Services @@ -264,6 +264,10 @@ namespace ICSharpCode.FormsDesigner.Services
*/
asm = Assembly.LoadFile(tempPath);
MarkFileToDeleteOnReboot(tempPath);
} else if (e.Message.Contains("HRESULT: 0x80131019")) {
LoggingService.Debug(e.Message);
LoggingService.Debug("Attempting to load unverifiable assembly. Ignoring.");
return null;
} else {
throw; // don't ignore other load errors
}

Loading…
Cancel
Save