+
+
HTTP Error 500.0 - ANCM InProcess Startup Failure
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/AspNetCoreModuleV2/AspNetCore/OutOfProcessShimStaticHtml.htm b/src/AspNetCoreModuleV2/AspNetCore/OutOfProcessShimStaticHtml.htm
new file mode 100644
index 0000000000..475ce26956
--- /dev/null
+++ b/src/AspNetCoreModuleV2/AspNetCore/OutOfProcessShimStaticHtml.htm
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
HTTP Error 500.0 - ANCM OutOfProcess Startup Failure
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/AspNetCoreModuleV2/AspNetCore/ServerErrorApplication.h b/src/AspNetCoreModuleV2/AspNetCore/ServerErrorApplication.h
index df686adbc4..ac5bd85aaf 100644
--- a/src/AspNetCoreModuleV2/AspNetCore/ServerErrorApplication.h
+++ b/src/AspNetCoreModuleV2/AspNetCore/ServerErrorApplication.h
@@ -9,8 +9,16 @@
class ServerErrorApplication : public PollingAppOfflineApplication
{
public:
- ServerErrorApplication(const IHttpApplication& pApplication, HRESULT hr)
+ ServerErrorApplication(const IHttpApplication& pApplication, HRESULT hr, HINSTANCE moduleInstance)
+ : ServerErrorApplication(pApplication, hr, moduleInstance, true /* disableStartupPage*/, 0 /* page */)
+ {
+ }
+
+ ServerErrorApplication(const IHttpApplication& pApplication, HRESULT hr, HINSTANCE moduleInstance, bool disableStartupPage, int page)
: m_HR(hr),
+ m_disableStartupPage(disableStartupPage),
+ m_page(page),
+ m_moduleInstance(moduleInstance),
PollingAppOfflineApplication(pApplication, PollingAppOfflineApplicationMode::StopWhenAdded)
{
}
@@ -19,7 +27,7 @@ public:
HRESULT CreateHandler(IHttpContext *pHttpContext, IREQUEST_HANDLER ** pRequestHandler) override
{
- auto handler = std::make_unique