解决办法:
判断请求是否 /WebResource.asxd,是则跳过去
private void Application_BeginRequest(object sender, EventArgs e)
{
HttpApplication httpApp = (HttpApplication) sender;
if(httpApp.Request.RawUrl.IndexOf("/WebResource.axd") < 0)
{
m_ResponseStream = new GBConvertStream(httpApp.Response.Filter, httpApp.Context);
httpApp.Response.Filter = m_ResponseStream;
httpApp.Context.Items["culture"] = ShouldProcessBig5(httpApp.Request) ? "zh-tw" : "zh-cn";
}
}
{
HttpApplication httpApp = (HttpApplication) sender;
if(httpApp.Request.RawUrl.IndexOf("/WebResource.axd") < 0)
{
m_ResponseStream = new GBConvertStream(httpApp.Response.Filter, httpApp.Context);
httpApp.Response.Filter = m_ResponseStream;
httpApp.Context.Items["culture"] = ShouldProcessBig5(httpApp.Request) ? "zh-tw" : "zh-cn";
}
}