基本のglobal.asaxクラスを継承して、カスタムのglobal.asaxクラスを作成しようとしています。しかし、私のカスタム継承グローバルクラスは正しく機能しません。そのApplication_Startは呼び出されません。
ホエイを知っている人はいますか?
public class BaseGlobal : HttpApplication
{
protected void Application_Start(Object sender, EventArgs e)
{
log4net.Config.XmlConfigurator.Configure();
Logger.Warn("Portal Started"); //I can find it log file
}
......
}
public class MyGlobal : BaseGlobal
{
new protected void Application_Start(Object sender, EventArgs e)
{
base.Application_Start(sender,e);
Logger.Warn("Portal Started 2"); // Can not find it in log file
}
}
<%@ Application Codebehind="Global.asax.cs" Inherits="Membership_ABC.MyGlobal" Language="C#" %>
ログファイルに「Portalstarted2」が見つかりませんでしたが、「PortalStarted」だけが見つかりました。
何か案は?