Click here to Skip to main content
14,937,268 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am facing issue while deploying application in IIS7.

Some exception has occured. The actual exception is

:System.Runtime.InteropServices.COMException (0x800A1098): This command is not available because no document is open. at Microsoft.Office.Interop.Word.ApplicationClass.get_ActiveDocument() at T2_TestCases.LoadTOC() in c:\inetpub\wwwroot\T2_Tool\T2\TestCase\T2_TestCases.aspx.cs:line 123

It works perfectly when i run source code directly in VS 2008 but when i publish it on IIS, it gives above error.

In code I am reading Word Document and Exporting the contents of word to Excel File

Updated 17-Nov-11 21:50pm
Hard to say what happened without looking at your code. How about short but comprehensive code sample?
--SA 22-Nov-11 23:13pm
Hi I will send you the entire code, kindly give me your mail ID

1 solution


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