From 2c26c65f63d7d1341df967d448f966604a4cbf7a Mon Sep 17 00:00:00 2001 From: Carl Woodhouse Date: Thu, 2 Feb 2017 20:22:00 +0000 Subject: [PATCH] [Fixes #7479] Unwrapping of TargetInvocationException causes partial stacktrace loss (#7550) Fixes #7479 --- .../ShapeAttributeStrategy/ShapeAttributeBindingStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard/DisplayManagement/Descriptors/ShapeAttributeStrategy/ShapeAttributeBindingStrategy.cs b/src/Orchard/DisplayManagement/Descriptors/ShapeAttributeStrategy/ShapeAttributeBindingStrategy.cs index 3dbe111e8..a98639fa3 100644 --- a/src/Orchard/DisplayManagement/Descriptors/ShapeAttributeStrategy/ShapeAttributeBindingStrategy.cs +++ b/src/Orchard/DisplayManagement/Descriptors/ShapeAttributeStrategy/ShapeAttributeBindingStrategy.cs @@ -70,7 +70,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy { catch(TargetInvocationException e) { // Throwing a TIE here will probably kill the web process // in Azure. For unknown reasons. - throw e.InnerException; + throw new Exception(string.Concat("TargetInvocationException ", methodInfo.Name), e.InnerException); } }