Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

1 solution

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.
 
Share this answer
 
Comments
amit_83 15-Mar-11 10:30am    
if i wanted to write bytes in another file excepting word, then what is the best way to write the byte into file?
Steve Wellens 15-Mar-11 10:59am    
http://msdn.microsoft.com/en-us/library/system.io.binarywriter.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900