why app_start start

Add following code for your class:

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(WeChatSchools.App_Start.MyStartPoint), "Initialize")]

ex:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc; [assembly: WebActivatorEx.PostApplicationStartMethod(typeof(WeChatSchools.App_Start.MyStartPoint), "Initialize")] namespace WeChatSchools.App_Start
{
public class MyStartPoint
{ public static void Initialize()
{
Start();
} public static void Start()
{
BLL.Helpers.EntityHelper.Log("start point");
} }
}
上一篇:poj2409


下一篇:技巧收集-W1701