【发布时间】:2009-10-14 17:16:14
【问题描述】:
这是我 Global.asax 中的 sn-p:
<script runat="server">
void Application_Start(object sender, EventArgs e) {
// log this call
EventLogger.Log("ApplicationStart");
}
void Application_BeginRequest(object sender, EventArgs e) {
// log what the user is doing
UsageLogger.Log(UsageLogger.GetServerVariables());
}
</script>
当我打开日志时,我看到许多 ApplicationStart 调用穿插着使用调用。为什么我的应用程序似乎重启了这么多?
【问题讨论】:
标签: c# asp.net debugging global-asax