menu
more_vert
没有为扩展名“.html”注册的生成提供程序

作者:dayu


  

protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes();
}
private void RegisterRoutes()
{
var factory = new WebServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("KQ", factory, typeof(WS)));
RouteTable.Routes.Add(new ServiceRoute("OA", factory, typeof(FileList)));
RouteTable.Routes.Add(new ServiceRoute("RG", factory, typeof(Reg)));
RouteTable.Routes.MapPageRoute("xx", "sd", "~/no.aspx");
RouteTable.Routes.MapPageRoute("xx3", "i", "~/test.htm");
}

没有为扩展名“.html”注册的生成提供程序

原文地址:http://www.cnblogs.com/xiangxiong/p/7233870.html