开发者

Instantiating the Application object of Interop.Word hangs the Webservice

I am using Interop.Word version 12 for doing some operation in a word document. My WebService is built in .Net v4.0. The code starts with instantiating an Application object as shown below :

  Application _wordApp = new Application();

which later in the code uses it to 开发者_StackOverflowcreate a Word Doc:

 _oDoc = _wordApp.Documents.Add(ref tempFilename, ref _missing, ref _missing, ref _missing);

This is all implemented in a Webservice but the service gets hang in instantiating the Application object itself inside the webmethod .

The WebService works fine in my Dev environment but this issue happens once I deploy the Web Service on Windows Server 2003 which is using IIS 6.0.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜