Events in Global.asax are not firing

前端 未结 5 2002
有刺的猬
有刺的猬 2021-01-19 03:27

In my ASP.Net application, I can\'t get the events in Global.asax to fire on my machine. For instance, Session_Start will not fire.

The same Global.asax works fine

5条回答
  •  甜味超标
    2021-01-19 03:38

    Application level events only need proper naming to work. Is your codebehind class being designated in your Global.asax file?

    <%@ Application Inherits="YourNamespace.YourApplicationClass" Language="C#" %>
    

提交回复
热议问题