using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
namespace SignalRChat
{
public class Global : HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
if(!File.Exists(Server.MapPath(“Count_Visited.txt”)))
File.WriteAllText(Server.MapPath(“Count_Visited.txt”),“0″);
Application["Access"] =int.Parse(File.ReadAllText(Server.MapPath(“Count_Visited.txt”)));
}
}
}
我尝试在Application_Start中设置断点,但是它不起作用