开发者

Instantiating the Application object of Interop.Word hangs the Webservice

开发者 https://www.devze.com 2023-03-13 01:57 出处:网络
I am using Interop.Word version 12 for doing some operation in a word document. My WebService is built in .Net v4.0.

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

精彩评论

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

关注公众号