My script calls Microsoft Word (win32com.client.Dispatch("Word.Application")) but fails.
I can run the script as myself and on the same server ArcGIS server is using, which tells me Word is on the server. But, when I run the script from the REST endpoint, I believe I get a permissions problem. Error below. I believe permissions have been set properly for the soc/som user to access these libraries. COM issue? Thought I'd take a shot in the dark by posting here.
line 241, in wordapp = win32com.client.Dispatch("Word.Application") File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147024891, 'Access is denied.', None, None) (-2147024891, 'Access is denied.', None, None)
Thanks,
ryan