سؤال

أعراض:

  • أرفق مصحح أخطاء ، أنتظر بعض الوقت ، وينفصل تلقائيًا
  • أشاهد سجل الحدث أثناء العملية العادية - بعد أن يأتي طلب واحد ، ينتظر قليلاً ، يتم إيقاف تشغيله

تختلف. لقد اتبعت الخطوات التالية لتسجيل عمليات الإغلاق في IIS:

أعلم أن هذه تعمل لأن ...

ما أراه في سجلات الحدث عندما أقوم بتغيير 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:

http://www.microsoft.com/downloads/details.aspx؟familyid=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

Debugdiag هو أداة دعم MS قد تستخدمها لإنشاء تقرير لهم لتفقده.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top