我使用com进行word内容读取操作,在自己机子上没有问题,部署到服务器后出现权限的问题。
服务器环境:
系统:widows 2008
软件:word2013
系统按照网上的配置设置成交互用户,还是出现以下提示:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a 因为配置标识不正确,系统无法开始服务器进程。请检查用户名和密码。 (Exception from HRESULT: 0x8000401A).
如果把DCOM配置成启动用户,则出现以下错误:
Object reference not set to an instance of an object
但是如果我通过远程连接服务器并且不关闭,此时再操作的话就没有问题