تشخيص إغلاق IIS
-
03-10-2019 - |
سؤال
أعراض:
- أرفق مصحح أخطاء ، أنتظر بعض الوقت ، وينفصل تلقائيًا
- أشاهد سجل الحدث أثناء العملية العادية - بعد أن يأتي طلب واحد ، ينتظر قليلاً ، يتم إيقاف تشغيله
تختلف. لقد اتبعت الخطوات التالية لتسجيل عمليات الإغلاق في IIS:
- http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx
- http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-tudy-lost-session-variables-and-appdomain-recycles.aspx
أعلم أن هذه تعمل لأن ...
ما أراه في سجلات الحدث عندما أقوم بتغيير web.config:
The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=IIS configuration change HostingEnvironment initiated shutdown CONFIG change CONFIG change HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table
لكن هذا لا يساعد لأن خطأ MySetery لا يخبرني بأي شيء. أرى نفس الشيء كما من قبل أن أضفت هذا التسجيل الإضافي:
The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=HostingEnvironment initiated shutdown HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table
أي شخص لديه أي أفكار لمزيد من التصحيح؟
المحلول
حسنًا ، اتضح أن IIS قد تم تعيينه بطريقة ما لإعادة تدوير المسبح كل دقيقة - بالتأكيد ليس التكوين المعتاد. (أعتقد أنها كانت مزحة.) سأترك هذا الأمر حتى يجد أي شخص غوغل هذه الرسالة شيئًا يساعدهم.
نصائح أخرى
إليك إشارة جيدة:
http://blogs.iis.net/mailant/archive/2008/03/07/iis7-diagnostics-for-developers-talk-at-mix08.aspx
يمكنك أيضًا استخدام Debugdiag:
Debugdiag هو أداة دعم MS قد تستخدمها لإنشاء تقرير لهم لتفقده.
لا تنتمي إلى StackOverflow