HttpApplication: if there is an exception in InitOnce, output it on the Console
authorEtienne CHAMPETIER <etienne.champetier@fiducial.net>
Fri, 24 Oct 2014 11:39:35 +0000 (13:39 +0200)
committerEtienne CHAMPETIER <etienne.champetier@fiducial.net>
Fri, 24 Oct 2014 14:17:10 +0000 (16:17 +0200)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
mcs/class/System.Web/System.Web/HttpApplication.cs

index 4d7ce11e28333f02a1825e88a4b7fb6cb1795ee4..da393081d5e413dd62592439618c3348c5de7b0f 100644 (file)
@@ -230,6 +230,10 @@ namespace System.Web
                                        }
                                } catch (Exception e) {
                                        initialization_exception = e;
+                                       Console.Error.WriteLine("Exception while initOnce: "+e.ToString());
+                                       // Once initialization_exception != null, we always respond with this exception
+                                       // You have to restart the HttpApplication to "unlock" it
+                                       Console.Error.WriteLine("Please restart your app to unlock it");
                                } finally {
                                        if (mustNullContext)
                                                context = null;