在asp.net应用程序中从后面的代码中打开单词doument会导致线程异常中止并在写响应时挂起应用程序. [英] open word doument in asp.net application from code behind is giving thread abort exception and hang the application when write response.End?

查看:84
本文介绍了在asp.net应用程序中从后面的代码中打开单词doument会导致线程异常中止并在写响应时挂起应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从背后的代码中在asp.net应用程序中打开Word文档时,线程异常中止并在编写Response.End()时挂起应用程序,
为什么,我应该怎么做才能解决这个问题?

When i am opening a word document in asp.net application from code behind is giving thread abort exception and hang the application when write Response.End(),
why, what should i do to remove this problem?

推荐答案

不要这样做:

http://support.microsoft.com/kb/257757 [
Don''t do that:

http://support.microsoft.com/kb/257757[^]

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.


这篇关于在asp.net应用程序中从后面的代码中打开单词doument会导致线程异常中止并在写响应时挂起应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆