Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have opened a word document as follows

*Application wordApp = new ApplicationClass();
Document doc = null;
doc = wordApp.Documents.Open(ref docPath,
  ref setFalse, ref setFalse, ref setFalse, ref missing,
  ref missing, ref setTrue, ref missing, ref missing,
  ref missing, ref missing, ref setFalse, ref setFalse,
  ref missing, ref setTrue, ref missing);*

This is working fine with development server. But in IIS this is not working I have already given permission to ASPNET user in IIS,Folder and in dcomcnfg. Please help to solve this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
224 views
Welcome To Ask or Share your Answers For Others

1 Answer

Typically the accounts running web processes don't have enough os permissions to run GUI apps like Word. This is probably a good thing in most cases as one really shouldn't run GUI apps from web processes. What happens when word springs a modal dialog that blocks the entire site and no one is available to visit the web server and click OK. If you must read word docs, a library is a much better solution.

All that said, using word here makes zero sense -- you are just loading some stop words from a file. Plain text would be just as effective and vastly easier to deal with.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...