diff --git a/GMW/App_Start/MyStartup.cs b/GMW/App_Start/MyStartup.cs
new file mode 100644
index 00000000..cbca5ebe
--- /dev/null
+++ b/GMW/App_Start/MyStartup.cs
@@ -0,0 +1,23 @@
+using SteamWare;
+using System;
+
+namespace GMW.App_Start
+{
+ public class MyStartup
+ {
+ public static void Init()
+ {
+ logger.lg.scriviLog("Esecuzione MyStartup.init()", tipoLog.STARTUP);
+ try
+ {
+ // inizializzo appConf prima di tutto il resto...
+ memLayer.ML.resetAppConf();
+ logger.lg.scriviLog("Completata esecuzione preliminare setup AppConf", tipoLog.STARTUP);
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Eccezione in fase di INIT preliminare applicazione{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/GMW/GMW.csproj b/GMW/GMW.csproj
index cc5d76dd..835fa368 100644
--- a/GMW/GMW.csproj
+++ b/GMW/GMW.csproj
@@ -769,6 +769,7 @@
animeMult.aspx
+
AssegnaNC.aspx
diff --git a/GMW/Global.asax.cs b/GMW/Global.asax.cs
index 7d1e652e..291f99b1 100644
--- a/GMW/Global.asax.cs
+++ b/GMW/Global.asax.cs
@@ -1,49 +1,52 @@
-using System;
+using GMW.App_Start;
+using System;
using System.Web.Optimization;
using System.Web.Routing;
namespace GMW
{
- public class Global : System.Web.HttpApplication
+ public class Global : System.Web.HttpApplication
+ {
+
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ // Code that runs on application startup
+ BundleConfig.RegisterBundles(BundleTable.Bundles);
+ // aggiungo friendlyUrls...
+ RouteConfig.RegisterRoutes(RouteTable.Routes);
+
+ // avvio il metodo init x applicazione...
+ MyStartup.Init();
+ }
+
+ protected void Session_Start(object sender, EventArgs e)
{
- protected void Application_Start(object sender, EventArgs e)
- {
- // Code that runs on application startup
- BundleConfig.RegisterBundles(BundleTable.Bundles);
-
- // aggiungo friendlyUrls...
- RouteConfig.RegisterRoutes(RouteTable.Routes);
- }
-
- protected void Session_Start(object sender, EventArgs e)
- {
-
- }
-
- protected void Application_BeginRequest(object sender, EventArgs e)
- {
-
- }
-
- protected void Application_AuthenticateRequest(object sender, EventArgs e)
- {
-
- }
-
- protected void Application_Error(object sender, EventArgs e)
- {
-
- }
-
- protected void Session_End(object sender, EventArgs e)
- {
-
- }
-
- protected void Application_End(object sender, EventArgs e)
- {
-
- }
}
+
+ protected void Application_BeginRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_AuthenticateRequest(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_Error(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Session_End(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Application_End(object sender, EventArgs e)
+ {
+
+ }
+ }
}
\ No newline at end of file