Frage

Symptome:

  • Ich lege einen Debugger, ich warte ein wenig, es ablöst automatisch
  • Ich beobachte das Ereignisprotokoll während des normalen Betriebs - nach einer einzigen Anfrage kommt, es wartet ein wenig, die Fährt

Disagnosing. Ich habe die folgenden Schritte für die Protokollierung Abschaltungen in IIS gefolgt:

Ich weiß, dass diese arbeiten, weil ...

Was ich in den Event-Logs zu sehen, wenn ich die web.config ändern:

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

Aber es hilft nicht, weil der mysetery Fehler mir nichts sagen. Ich sehe das gleiche wie aus, bevor ich diese zusätzliche Protokollierung hinzugefügt:

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

Wer noch Ideen für weitere Debuggen haben?

War es hilfreich?

Lösung

Nun, es stellt sich heraus, dass IIS hätte irgendwie eingestellt auf dem Pool jede Minute zu recyceln - schon gar nicht die übliche Konfiguration. (Ich glaube, es war ein Scherz.) Ich verlasse diese, so dass jeder, der Fehlermeldung googelt etwas finden könnte, die ihnen hilft.

Andere Tipps

Hier ist eine gute Referenz:

http://blogs.iis.net/mailant/archive/2008/03/07/iis7-diagnostics-for-developers-talk-at-mix08.aspx

Sie können auch DebugDiag verwenden:

http: // www .microsoft.com / downloads / details.aspx? FamilyID = 28bd5941-c458-46f1-B24D-f60151d875a3 & displaylang = en

DebugDiag ist das Werkzeug MS-Support haben würden Sie einen Bericht erstellen verwenden, um sie zu inspizieren.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top