第二次发帖了,第一次没人回复,http://topic.csdn.net/u/20090912/17/fe3b215b-c77a-4304-99f6-87e254b21338.html?seed=54940453&r=59758523#r_59758523已经在MIME类型中加入了.docx .xlsx等 .xml 也已经加上了,可是还出现这个问题!

解决方案 »

  1.   

    Response.ContentType = "" 
    .docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document 
    .xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet 
    .pptx,application/vnd.openxmlformats-officedocument.presentationml.presentationResponse.Clear();
                Response.ClearContent();
                Response.ClearHeaders();
                Response.AddHeader("Content-Disposition", "attachment;filename=" + Filename);
                Response.AddHeader("Content-Length", Sfile.Length.ToString());
                Response.AddHeader("Content-Transfer-Encoding", "binary");
                Response.ContentType = "";
                Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
                Response.WriteFile(Filename);
                Response.Flush();
                Response.End();
      

  2.   

    网上找了半天 发现这些办法都没效果 ,, 最后上了微软英文网站 感谢我的上司,他找到了这个页面 也提示我用这样办法测试了下发现有个人说 
    The trusted zone fix that Craig mentioned above seems to be the only fix as this isn't a server side issue. My organization had the same exact problem and we determined that IE8 was the culprit as we have IE6 and IE7 deployed and the problem only surfaces with IE8. Using a GPO I deployed the trusted site to all our internal OWA users (about 2500 Clients) and it works like a charm. However I think it is silly that IE doesn't recognize known file types even if the software that opens those file types is installed on the local machine. 
    就是把OWA 加入到可信站点中,,, 这样问题马上解决,如果是域环境中 可以直接 更改组策略 帮大家都加到可信站点中,,, 这个是我后来解决问题的办法希望可以帮助大家
    以下的办法 对我的解决问题无效。。不是服务器问题 服务器 这些后缀都加了啊