We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579d722 commit 1939339Copy full SHA for 1939339
src/Servers/IIS/IIS/src/StartupHook.cs
@@ -49,8 +49,10 @@ public static void Initialize()
49
var iisConfigData = NativeMethods.HttpGetApplicationProperties();
50
var contentRoot = iisConfigData.pwzFullApplicationPath.TrimEnd(Path.DirectorySeparatorChar);
51
52
+ using var fileProvider = new PhysicalFileProvider(contentRoot);
53
+
54
var model = ErrorPageModelBuilder.CreateErrorPageModel(
- new PhysicalFileProvider(contentRoot),
55
+ fileProvider,
56
logger: null,
57
showDetailedErrors: true,
58
exception);
0 commit comments