\
-
HTTP Error 500.30 - ANCM In-Process Start Failure
\
-
\
-
\
-
\
-
\
-
\
-
\
-
\
-
");
}
~StartupExceptionApplication() = default;
diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
index f8041a0f13..d180460898 100644
--- a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
+++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
@@ -4,6 +4,30 @@
#include "StartupExceptionApplication.h"
#include "StartupExceptionHandler.h"
+std::string StartupExceptionHandler::s_html500Page = " \
+ \
+ \
+ \
+
HTTP Error 500.30 - ANCM In-Process Start Failure
\
+
\
+
\
+
\
+
\
+
\
+
\
+
\
+
";
+
REQUEST_NOTIFICATION_STATUS StartupExceptionHandler::OnExecuteRequestHandler()
{
if (!m_disableLogs)
@@ -16,11 +40,9 @@ REQUEST_NOTIFICATION_STATUS StartupExceptionHandler::OnExecuteRequestHandler()
(USHORT)strlen("text/html"),
FALSE
);
- const std::string& html500Page = m_pApplication->GetStaticHtml500Content();
-
DataChunk.DataChunkType = HttpDataChunkFromMemory;
- DataChunk.FromMemory.pBuffer = (PVOID)html500Page.c_str();
- DataChunk.FromMemory.BufferLength = (ULONG)html500Page.size();
+ DataChunk.FromMemory.pBuffer = (PVOID)s_html500Page.c_str();
+ DataChunk.FromMemory.BufferLength = (ULONG)s_html500Page.size();
pResponse->WriteEntityChunkByReference(&DataChunk);
}
else
diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
index 9b5a9ba45d..266474e1b5 100644
--- a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
+++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
@@ -3,6 +3,7 @@
#pragma once
+#include