i 设有一个伙伴关系。 NET网站,在某些非常少见的场合有错误,造成许多失败的请求。 错误在OnError凌驾于我所有页基类别之上,即错误发生时。
由于这一错误非常少见,因此,如果发生错误,则希望重新确定错误,以便该地点恢复正常运转。
my question: on the OnError code below, how can i cause the IIS to reset? i can run iisreset or can cause the iis to crash using something like System.Environment.Exit(-1). what is there a preferred method to reset the iis?
Protected Overrides Sub OnError(ByVal e As EventArgs)
LogException(Server.GetLastError())
MyBase.OnError(e)
End Sub