From 6df8ebf3ecd64bc057aacd0927329d24817b49f3 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 22 Aug 2019 12:09:36 +0200 Subject: [PATCH] Inserito Elmah --- NKC_WF/App_Readme/Elmah.txt | 15 ++++++++++++ NKC_WF/NKC_WF.csproj | 4 ++++ NKC_WF/Web.config | 46 +++++++++++++++++++++++++++++++++---- NKC_WF/packages.config | 2 ++ 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 NKC_WF/App_Readme/Elmah.txt diff --git a/NKC_WF/App_Readme/Elmah.txt b/NKC_WF/App_Readme/Elmah.txt new file mode 100644 index 0000000..784b309 --- /dev/null +++ b/NKC_WF/App_Readme/Elmah.txt @@ -0,0 +1,15 @@ +A new HTTP handler has been configured in your application for consulting the +error log and its feeds. It is reachable at elmah.axd under your application +root. If, for example, your application is deployed at http://www.example.com, +the URL for ELMAH would be http://www.example.com/elmah.axd. You can, of +course, change this path in your application's configuration file. + +ELMAH is also set up to be secure such that it can only be accessed locally. +You can enable remote access but then it is paramount that you secure access +to authorized users or/and roles only. This can be done using standard +authorization rules and configuration already built into ASP.NET. For more +information, see http://code.google.com/p/elmah/wiki/SecuringErrorLogPages on +the project site. + +Please review the commented out authorization section under + and make the appropriate changes. diff --git a/NKC_WF/NKC_WF.csproj b/NKC_WF/NKC_WF.csproj index 209cb9f..d3ad595 100644 --- a/NKC_WF/NKC_WF.csproj +++ b/NKC_WF/NKC_WF.csproj @@ -53,6 +53,9 @@ ..\packages\AspNet.ScriptManager.jQuery.3.4.1\lib\net45\AspNet.ScriptManager.jQuery.dll + + ..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll + ..\packages\Microsoft.AspNet.SessionState.SessionStateModule.1.1.0\lib\Net462\Microsoft.AspNet.SessionState.SessionStateModule.dll @@ -148,6 +151,7 @@ + diff --git a/NKC_WF/Web.config b/NKC_WF/Web.config index 3adf2aa..27476c0 100644 --- a/NKC_WF/Web.config +++ b/NKC_WF/Web.config @@ -4,6 +4,14 @@ https://go.microsoft.com/fwlink/?LinkId=169433 --> + + +
+
+
+
+ + @@ -19,7 +27,11 @@ - + + + + + @@ -102,6 +114,32 @@ - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NKC_WF/packages.config b/NKC_WF/packages.config index 838668b..eacf9b9 100644 --- a/NKC_WF/packages.config +++ b/NKC_WF/packages.config @@ -4,6 +4,8 @@ + +