\
+
HTTP Error 500.30 - ANCM In-Process Start Failure
\
+
\
+
\
+
\
+
\
+
\
+
\
+
\
+
");
}
~StartupExceptionApplication() = default;
- virtual VOID ShutDown() override;
- virtual HRESULT CreateHandler(IHttpContext * pHttpContext, IREQUEST_HANDLER ** pRequestHandler) override;
+ VOID ShutDown() override;
+ HRESULT CreateHandler(IHttpContext * pHttpContext, IREQUEST_HANDLER ** pRequestHandler) override;
std::string&
GetStaticHtml500Content()
{
- {
- SRWExclusiveLock lock(m_srwLock);
- if (html500Page.empty())
- {
- html500Page = std::string(" \
- \
- \
- \
-
HTTP Error 500.30 - ANCM In-Process Start Failure
\
-
\
-
\
-
\
-
\
-
\
-
\
-
\
-
");
- }
- }
-
return html500Page;
}
private:
std::string html500Page;
- SRWLOCK m_srwLock;
BOOL m_disableLogs;
- IHttpServer* m_pHttpServer;
};
diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
index b0817a4659..af38e7025e 100644
--- a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
+++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.cpp
@@ -1,6 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
+#include "precomp.hxx"
+
+#include "StartupExceptionApplication.h"
#include "StartupExceptionHandler.h"
REQUEST_NOTIFICATION_STATUS StartupExceptionHandler::OnExecuteRequestHandler()
@@ -28,15 +31,5 @@ REQUEST_NOTIFICATION_STATUS StartupExceptionHandler::OnExecuteRequestHandler()
}
return REQUEST_NOTIFICATION_STATUS::RQ_NOTIFICATION_FINISH_REQUEST;
-
}
-REQUEST_NOTIFICATION_STATUS StartupExceptionHandler::OnAsyncCompletion(DWORD , HRESULT )
-{
- return REQUEST_NOTIFICATION_STATUS::RQ_NOTIFICATION_FINISH_REQUEST;
-}
-
-VOID StartupExceptionHandler::TerminateRequest(bool )
-{
- return VOID();
-}
diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
index 859f3a73f5..9b5a9ba45d 100644
--- a/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
+++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/StartupExceptionHandler.h
@@ -3,21 +3,13 @@
#pragma once
-#include "precomp.hxx"
#include "requesthandler.h"
-#include "StartupExceptionApplication.h"
class StartupExceptionApplication;
class StartupExceptionHandler : public REQUEST_HANDLER
{
public:
- virtual REQUEST_NOTIFICATION_STATUS OnExecuteRequestHandler() override;
-
- virtual REQUEST_NOTIFICATION_STATUS OnAsyncCompletion(DWORD cbCompletion, HRESULT hrCompletionStatus) override;
-
- virtual VOID TerminateRequest(bool fClientInitiated) override;
-
StartupExceptionHandler(IHttpContext* pContext, BOOL disableLogs, StartupExceptionApplication* pApplication)
:
m_pContext(pContext),
@@ -26,9 +18,7 @@ public:
{
}
- ~StartupExceptionHandler()
- {
- }
+ REQUEST_NOTIFICATION_STATUS OnExecuteRequestHandler() override;
private:
IHttpContext * m_pContext;
diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/dllmain.cxx b/src/AspNetCoreModuleV2/InProcessRequestHandler/dllmain.cxx
index 20314d34a4..ac1e1a0ae4 100644
--- a/src/AspNetCoreModuleV2/InProcessRequestHandler/dllmain.cxx
+++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/dllmain.cxx
@@ -4,7 +4,6 @@
// dllmain.cpp : Defines the entry point for the DLL application.
#include "precomp.hxx"
-#include